A variation of the previous Search in Rotated Sorted Array problem.
Original post
This time, the array allows duplicates. I modified the code’s conditional logic accordingly.
Still O(log n).
| |
A variation of the previous Search in Rotated Sorted Array problem.
Original post
This time, the array allows duplicates. I modified the code’s conditional logic accordingly.
Still O(log n).
| |