Daily challenge for 2025-11-22
326. Search in Rotated Sorted Array II
There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values).
Before being passed to your function, nums is rotated at an unknown pivot index k (0 <= k < nums.length).
Given the array nums after the rotation and an integer target, return true if target is in nums, or false if it is not in nums.
Example:Input: nums = [2,5,6,0,0,1,2], target = 0Output: true
Example 2:Input: nums = [2,5,6,0,0,1,2], target = 3Output: false
Run this challenge interactively in Python or JavaScript when the app loads.