we can apply that case in the comparator or sort them after counting again
in nlogn (with respect to number of occurrences and their first index)
since the first occurrence of a number happens when it's not inserted in bst
we can do this easily

-- 
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.

Reply via email to