Hi,
I was trying to solve problem 221C from Codeforces Round #136 Division 2 ! ( http://codeforces.net/contest/221/problem/C ) and the approach that I am using is to simply sort the array, and then compare it with the original for mismatches.
When I submitted this code by checking JAVA7, I got a Time Limit Exceeded, but when I submitted exactly the same code by selecting JAVA6, it got accepted. Any idea why ? Any insight into this would be most appreciated since I am very confused.
JAVA7 SUBMISSION : http://codeforces.net/contest/221/submission/2362232
JAVA6 SUBMISSION : http://codeforces.net/contest/221/submission/2362234
Thank you :)
http://codeforces.net/blog/entry/4827
Ok, thank you so much !