I wondered that too...seems kid 3 gets too many wishes On Jan 8, 8:21 pm, bhawana goel <bhawan...@gmail.com> wrote: > In the 3rd test case, how come the answer is Yes. 1,2 and 3 are > forming a cycle. > > On Jan 8, 1:19 pm, juver++ <avpostni...@gmail.com> wrote: > > > > > > > > > Also, you may use hash_set and hash_map if such exists in your language.
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@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?hl=en.