LeetCodeDiary

A Diary for solving LeetCode problems

View on GitHub
class Solution:
    def search(self, nums: List[int], target: int) -> bool:
        return target in nums

数组 中等 每日一题

直接in复杂度是差不多的

https://leetcode-cn.com/problems/search-in-rotated-sorted-array-ii/