You are viewing a single comment's thread. Return to all comments →
For the test cases which contains a single element, make sure that you print YES, otherwise you will fail the Test #6. I think it is a huge mistake of the author, because it is not specified at all!
For example for input:
Make sure your answer is: