We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 775b2d0 commit 56f7219Copy full SHA for 56f7219
search-in-rotated-sorted-array/hu6r1s.py
@@ -0,0 +1,3 @@
1
+class Solution:
2
+ def search(self, nums: List[int], target: int) -> int:
3
+ return nums.index(target) if target in nums else -1
0 commit comments