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

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

 

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level