You are designing an algorithm that ranks website pages by relevance according to the number of times they are viewed by users.

LANGUAGE:  PYTHON

CHALLENGE:

You are designing an algorithm that ranks website pages by relevance according to the number of times they are viewed by users. Which data structure would be the most useful and efficient for you to use?

  1. A hash table because data would be efficiently searched and retrieved
  2. A stack because the website pages would need to be popped and pushed systematically from the ranking list
  3. A graph because Elizabeth needs data relating to how webpages are connected to each other and how many times they were viewed
  4. A sorted array because all the data relating to web pages needs to be sorted in a ranking order
  5. None of the above

 

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,