240 发简信
  • python a in list与 a in dict.keys()

    想在一个列表中确认是否存在某个元素:通常使用 a in list,但是这是个O(n)的操作,非常慢 而 a in dict.keys() 是O...

  • 120
    #238. Product of Array Except Self

    https://leetcode.com/problems/product-of-array-except-self/#/description...

  • #495. Teemo Attacking

    https://leetcode.com/problems/teemo-attacking/#/description 题目过长 这里就不放啦 ...

  • 120
    #283. Move Zeroes

    https://leetcode.com/problems/move-zeroes/#/description Python 遇到非零元素则替换...

  • 120
    #442. Find All Duplicates in an Array

    https://leetcode.com/problems/find-all-duplicates-in-an-array/#/descript...

  • 120
    #566. Reshape the Matrix

    https://leetcode.com/problems/reshape-the-matrix/#/hints 思路 关键就是原矩阵和resh...

  • 120
    #561. Array Partition I

    https://leetcode.com/problems/array-partition-i/#/description 翻译 将长度为2n的...

  • 120
    303. Range Sum Query - Immutable

    https://leetcode.com/problems/range-sum-query-immutable/#/description 方法...

  • 120
    #53. Maximum Subarray

    https://leetcode.com/problems/maximum-subarray/#/description 说明 查找连续子数组,...