GoLang Solution For LeetCode Problem: Search in Rotated Sorted Array II
Solving Search in Rotated Sorted Array II in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
Input: nums = [2,5,6,0,0,1,2], target = 0 Output: true
Input: nums = [2,5,6,0,0,1,2], target = 3 Output: false
- Would this affect the run-time complexity? How and why?
See the full details of the problem Search in Rotated Sorted Array II at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go