Haha This is a very old thread. :D
Anyways answer is to do DFS Time: O(n*m) Best Vivek On Mon, Apr 4, 2016 at 4:26 PM, <[email protected]> wrote: > > Hello Vivek do you have the solution for this problem. > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-code/f156438e-4a30-4bfd-85fc-725f67c5c5c6%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CABaJBvKwcQ6hLiQ7YN5Hcewkx%2BxA1MHb88Zjdwh6ZbVqVOziNw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
