Oh my gosh thank you very much Narut! Didn't realize I made such blunder allocating array of size N only, while the path length is 2N - 2
-- 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 google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/09930e5f-8404-4ea2-b9f0-ef697036888a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.