Hi,
I am having trouble finding out where the code fails for problem http://mirror.codeforces.com/problemset/problem/279/C.
My logic is as follows:-
- Store the entries in an array till the time the answer is valid
- Check if the r in the array contains less than or equal to l then the answer is "Yes".
- My code fails at test case 21.
- Please point the error in the code.
- It would be good if you can give a small sample test case where the code fails.
Link to submission http://mirror.codeforces.com/contest/279/submission/25115819
Thanks in advance.




