您的位置:首页 > 其它

LeetCode-81-Search in Rotated Sorted Array II 水题

2017-09-27 19:24 573 查看
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: bool
"""
for i in range(len(nums)):
if nums[i]==target:
return True
return False
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: