I think we can have a BST that is keyed based on birth day date and month this is done as follows.. If i have a birth day on Jan 2 nd then key value is 2(2nd day of the year) if birthday is feb 14th then its 45 (31+14).The tree nodes can have a count of number of people whose b'days are on that day or you can have a ptr to linked list that has names of persons who have bdays on same day from nodes in BST.
Hope it was helpful Cheers!! Shiyam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---