The problem said Chef can visit Islands in any order. But this t.case 1 3 3 1 1 2 1 2 3 1 2 3
shows output "all". But it should be "some" I guess. But my code is AC although it shows "all" for this testcase.
If I rearrange the Island like this- 1 3 3 3 1 2 3 1 1 2 1 2
it shows "some" as output.
Shouldn't they take a look for the corner cases ?! Or am I missing something to understand? Help me.
problem link: https://www.codechef.com/APRIL17/problems/DISHLIFE