I think your solution is O(n^2). Could you also share what ur code is doing here.
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-code/9df2a62f-68cd-4585-882f-46288807e5dc%40googlegroups.com.