Please tell the stopping criteria if the element is not found :
Staircase Search
https://ide.codingblocks.com/s/403538 But if element is not present it is not giving the intended answer. What is wrong here?
Check the condition which I told u and check what u have written