In this problem , can we sort the given array and then apply binary search ? Or do we need to solve in some other manner ?
Doubt regarding Help Rahul To Search problem
@Lalit2142 if u ll sort the array how will u find the index, where the number was originally?
use the given array and apply binary search to it.when u find mid compare it to the start if a[l]<a[m] and if c lies between this range then we do l to m-1 other wise we go for m+1 to e