[LeetCode] 81. Search in Rotated Sorted Array II
Python
class Solution:
def search(self, nums: List[int], target: int) -> bool:
if target in nums:
return True
else:
return False
class Solution:
def search(self, nums: List[int], target: int) -> bool:
if target in nums:
return True
else:
return False
댓글남기기