SPOJ HACKRNDM getting WA

binary-search
spoj

#1

Have implemented binary search after sorting the list to find a number 2 greater than the current element.


Question link - www.spoj.com/problems/HACKRNDM/


#2

Please provide a link to your question.


#3

Are you still getting WA?
I used the same logic, I got AC.