What if the return value is the index of the target ?

  • 0

    If duplicated, return the smallest index of the target.

    It is a little more complicated. Anyone has a good idea ?

    This could be "Search in Rotated Sorted Array III"

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.