240 发简信
IP属地:广东
  • Resize,w 360,h 240
    [Leetcode-7] 整数反转 reverse-integer

    面试便当python 解1:有两个坑,一是不能对MIN_INT取绝对值,二是中间环节不能使用到int64 Python3 时间复杂度:O(n),...

  • [Leetcode-6] Z字形变换 zigzag-conversion

    面试便当python 解1: Python3 时间复杂度:O(n)空间复杂度:O(n),看上去是二维list,其实总长和numRows一致 其他...

  • Resize,w 360,h 240
    [Leetcode-5] 最长回文子串 longest-palindromic-substring

    面试便当python 解1:中心扩散,应付面试应该是没问题的 Python3 时间复杂度:O(n2)空间复杂度:O(1) 其他语言版本Java/...

  • Resize,w 360,h 240
    [Leetcode-4] 寻找两个正序数组的中位数 median-of-two-sorted-arrays

    面试便当python 解:当两数组总长度和为偶数时,在数组A和数组B中, 在A、B分别寻找一个分割i和j,得到A左与A右,B左与B右 保持cou...

  • Resize,w 360,h 240
    [Leetcode-3] 无重复字符的最长子串 longest-substring-without-repeating-characters

    面试便当python 解1:双指针实现滑动窗口 Python3 时间复杂度:O(n)空间复杂度:O(m),m是 不重复的字符个数 其他语言版本J...

  • Resize,w 360,h 240
    [Leetcode-2] 两数相加 add-two-numbers

    面试便当python 解1:一种面试过程比较不容易写头晕的写法 Python3 时间复杂度:O(n)空间复杂度:O(n) 其他语言版本Java/...

  • Resize,w 360,h 240
    [Leetcode-1] 两数之和 two-sum

    面试便当python Python3 解1:排序+双指针 时间复杂度:O(nlogn),排序nlogn,搜索n,合并复杂度nlogn空间复杂度:...

个人介绍
这个家伙很懒,什么也没留下