@divya The answer to this question is perhaps in another question u asked
"You are provided with a stream of integers, design a data structure to store the number of occurrences of each integer" If you have such a data structure with no. of occurances of each integer (web page for this question), that the one with max occurance if your answer here. see the smae link as provided earlier for discussion on this. On Jul 3, 12:12 pm, divya <[email protected]> wrote: > Design an algorithm to calculate the most user viewed pages. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
