Like the previous question, but the values may repeat. A sorted list was rotated. Return True if target is in the list, False otherwise.
Example 1
Input:
search_rotated_duplicates([2, 5, 6, 0, 0, 1, 2], 0)
Output:
True
Example 2
Input:
search_rotated_duplicates([2, 5, 6, 0, 0, 1, 2], 3)
Output:
False
0 <= len(nums) <= 2 * 10**5-10**9 <= nums[i], target <= 10**9No results yet
Run your code to check it against the examples, or submit to run every test.