https://www.codechef.com/viewsolution/32418330
Can anyone tell me whats wrong with my code ?
take this test case
1
6 2
5 6 3 4 1 2
answer should be yes
What do you think your complexity is?
take this test case
1
6 2
5 6 3 4 1 2
answer should be yes
What do you think your complexity is?