I actually did this Question using 1D array and tested with many test cases and it is accepting it
but on the online judge it is giving wrong answer
Can anyone please pin point where my code is going wrong
Question --> http://www.spoj.com/problems/ELIS/
My solution–> http://ideone.com/oC3Qad