@Juver++.... Its its not reachable then print answer as 'no'.. whats the problem.. can you elaborate a bit ? I didnt get where it fails.
On Sat, Jan 8, 2011 at 1:30 AM, juver++ <[email protected]> wrote: > z can be unreachable while doing DFS from node x, cause their common > ancestor locates on the upper level. > So this solution failed. > > -- > 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]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- S.Nishaanth, Computer Science and engineering, IIT Madras. -- 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.
