package
Version:
v0.0.0-...-4e682c9
Opens a new window with list of versions in this module.
Published: Jan 8, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
题目
Follow up for "Search in Rotated Sorted Array":
- What if duplicates are allowed?
- Would this affect the run-time complexity? How and why?
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7
might become 4 5 6 7 0 1 2
).
Write a function to determine if a given target is in the array.
The array may contain duplicates.
解题思路
和33. Search in Rotated Sorted Array的解题思路一样,只是要先自己找到 k 的值。
见程序注释
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.