Leetcode

作者: 0200a9609930 | 来源:发表于2019-09-26 17:58 被阅读0次

    git地址
    https://github.com/yangyu2010/leetcode

    其他

    1. 两数之和
      https://leetcode-cn.com/problems/two-sum/
    https://github.com/yangyu2010/leetcode/blob/master/leetcode/1两数之和.py
    
    1. 整数反转
      https://leetcode-cn.com/problems/reverse-integer/
    https://github.com/yangyu2010/leetcode/blob/master/leetcode/7整数反转.py
    
    1. 加一
      https://leetcode-cn.com/problems/plus-one/
    https://github.com/yangyu2010/leetcode/blob/master/leetcode/66加一.py
    
    1. 二分查找
      https://leetcode-cn.com/problems/binary-search/
    https://github.com/yangyu2010/leetcode/blob/master/leetcode/704二分查找.py
    

    1. 有效的括号
      https://leetcode-cn.com/problems/valid-parentheses/submissions/
    https://github.com/yangyu2010/leetcode/blob/master/栈/20有效的括号.py
    
    1. 逆波兰表达式求值
      https://leetcode-cn.com/problems/evaluate-reverse-polish-notation/
    https://github.com/yangyu2010/leetcode/blob/master/栈/150逆波兰表达式求值.py
    
    1. 最小栈
      https://leetcode-cn.com/problems/min-stack/
    https://github.com/yangyu2010/leetcode/blob/master/栈/155最小栈.py
    

    队列

    1. 设计循环队列
      https://leetcode-cn.com/problems/design-circular-queue/
    https://github.com/yangyu2010/leetcode/blob/master/队列/622循环队列.py
    

    数组

    1. 移除元素
      https://leetcode-cn.com/problems/remove-element/
    https://github.com/yangyu2010/leetcode/blob/master/数组/27移除元素.py
    
    1. 在排序数组中查找元素的第一个和最后一个位置
      https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/
    https://github.com/yangyu2010/leetcode/blob/master/数组/34在排序数组中查找元素的第一个和最后一个位置.py
    
    1. 螺旋矩阵
      https://leetcode-cn.com/problems/spiral-matrix/
    https://github.com/yangyu2010/leetcode/blob/master/数组/54螺旋矩阵.py
    
    1. 杨辉三角
      https://leetcode-cn.com/problems/pascals-triangle/
    https://github.com/yangyu2010/leetcode/blob/master/数组/118杨辉三角.py
    
    1. 杨辉三角 II
      https://leetcode-cn.com/problems/pascals-triangle-ii/
    https://github.com/yangyu2010/leetcode/blob/master/数组/119杨辉三角%20II.py
    
    1. 两数之和 II - 输入有序数组
      https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/
    https://github.com/yangyu2010/leetcode/blob/master/数组/167两数之和II-输入有序数组.py
    
    1. 旋转数组
      https://leetcode-cn.com/problems/rotate-array/
    https://github.com/yangyu2010/leetcode/blob/master/数组/189旋转数组.py
    
    1. 长度最小的子数组
      https://leetcode-cn.com/problems/minimum-size-subarray-sum/
    https://github.com/yangyu2010/leetcode/blob/master/数组/209长度最小的子数组.py
    
    1. 最大连续1的个数
      https://leetcode-cn.com/problems/max-consecutive-ones/
    https://github.com/yangyu2010/leetcode/blob/master/数组/485最大连续1的个数.py
    
    1. 对角线遍历
      https://leetcode-cn.com/problems/diagonal-traverse/
    https://github.com/yangyu2010/leetcode/blob/master/数组/498对角线遍历.py
    
    1. 数组拆分 I
      https://leetcode-cn.com/problems/array-partition-i/
    https://github.com/yangyu2010/leetcode/blob/master/数组/561数组拆分I.py
    
    1. 寻找数组的中心索引
      https://leetcode-cn.com/problems/find-pivot-index/
    https://github.com/yangyu2010/leetcode/blob/master/数组/724寻找数组的中心索引.py
    
    1. 每日温度
      https://leetcode-cn.com/problems/daily-temperatures/
    https://github.com/yangyu2010/leetcode/blob/master/数组/739每日温度.py
    
    1. 至少是其他数字两倍的最大数
      https://leetcode-cn.com/problems/largest-number-at-least-twice-of-others/
    https://github.com/yangyu2010/leetcode/blob/master/数组/747至少是其他数字两倍的最大数.py
    

    字符串

    1. 无重复字符的最长子串
      https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/
    https://github.com/yangyu2010/leetcode/blob/master/字符串/3无重复字符的最长子串.py
    
    1. 字符串转换整数 (atoi)
      https://leetcode-cn.com/problems/string-to-integer-atoi/
    https://github.com/yangyu2010/leetcode/blob/master/字符串/8字符串转换整数.py
    
    1. 最长公共前缀
      https://leetcode-cn.com/problems/longest-common-prefix/submissions/
    https://github.com/yangyu2010/leetcode/blob/master/字符串/14最长公共前缀.py
    
    1. 实现 strStr()
      https://leetcode-cn.com/problems/implement-strstr/
    https://github.com/yangyu2010/leetcode/blob/master/字符串/28实现strStr.py
    
    1. 二进制求和
      https://leetcode-cn.com/problems/a]
      [pohjlo;p[']
      d-binary/
    https://github.com/yangyu2010/leetcode/blob/master/字符串/67二进制求和.py
    
    1. 翻转字符串里的单词
      https://leetcode-cn.com/problems/reverse-words-in-a-string/
    https://github.com/yangyu2010/leetcode/blob/master/字符串/151翻转字符串里的单词.py
    
    1. 反转字符串
      https://leetcode-cn.com/problems/reverse-string/
    https://github.com/yangyu2010/leetcode/blob/master/字符串/344反转字符串.py
    

    链表

    1. 两数相加
      https://leetcode-cn.com/problems/add-two-numbers/
    https://github.com/yangyu2010/leetcode/blob/master/链表/2两数相加.py
    
    1. 删除链表的倒数第N个节点
      https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/
    https://github.com/yangyu2010/leetcode/blob/master/链表/19删除链表的倒数第N个节点.py
    
    1. 合并两个有序链表
      https://leetcode-cn.com/problems/merge-two-sorted-lists/
    https://github.com/yangyu2010/leetcode/blob/master/链表/21合并两个有序链表.py
    
    1. 旋转链表
      https://leetcode-cn.com/problems/rotate-list/
    https://github.com/yangyu2010/leetcode/blob/master/链表/61旋转链表.py
    
    1. 环形链表
      https://leetcode-cn.com/problems/linked-list-cycle/
    https://github.com/yangyu2010/leetcode/blob/master/链表/141环形链表.py
    
    1. 环形链表 II
      https://leetcode-cn.com/problems/linked-list-cycle-ii/
    https://github.com/yangyu2010/leetcode/blob/master/链表/142环形链表%20II.py
    
    1. 相交链表
      https://leetcode-cn.com/problems/intersection-of-two-linked-lists/
    https://github.com/yangyu2010/leetcode/blob/master/链表/160相交链表.py
    
    1. 移除链表元素
      https://leetcode-cn.com/problems/remove-linked-list-elements/
    https://github.com/yangyu2010/leetcode/blob/master/链表/203移除链表元素.py
    
    1. 反转链表
      https://leetcode-cn.com/problems/reverse-linked-list/
    https://github.com/yangyu2010/leetcode/blob/master/链表/206反转链表.py
    
    1. 回文链表
      https://leetcode-cn.com/problems/palindrome-linked-list/
    https://github.com/yangyu2010/leetcode/blob/master/链表/234回文链表.py
    
    1. 删除链表中的节点
      https://leetcode-cn.com/problems/delete-node-in-a-linked-list/
    https://github.com/yangyu2010/leetcode/blob/master/链表/237删除链表中的节点.py
    
    1. 奇偶链表
      https://leetcode-cn.com/problems/odd-even-linked-list/
    https://github.com/yangyu2010/leetcode/blob/master/链表/328奇偶链表.py
    
    1. 设计链表
      https://leetcode-cn.com/problems/design-linked-list/
    https://github.com/yangyu2010/leetcode/blob/master/链表/707设计链表.py
    https://github.com/yangyu2010/leetcode/blob/master/链表/707设计链表双链表.py
    

    二叉树

    1. 对称二叉树
      https://leetcode-cn.com/problems/symmetric-tree/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/101对称二叉树.py
    
    1. 二叉树的层次遍历
      https://leetcode-cn.com/problems/binary-tree-level-order-traversal/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/102二叉树的层次遍历.py
    
    1. 从前序与中序遍历序列构造二叉树
      https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/105从前序与中序遍历序列构造二叉树.py
    
    1. 从中序与后序遍历序列构造二叉树
      https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/106从中序与后序遍历序列构造二叉树.py
    
    1. 路径总和
      https://leetcode-cn.com/problems/path-sum/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/112路径总和.py
    
    1. 填充每个节点的下一个右侧节点指针
      https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/116填充每个节点的下一个右侧节点指针.py
    
    1. 二叉搜索树的最近公共祖先
      https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/submissions/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/235二叉搜索树的最近公共祖先.py
    
    1. 二叉树的最近公共祖先
      https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/236二叉树的最近公共祖先.py
    
    1. 二叉树的序列化与反序列化
      https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/
    https://github.com/yangyu2010/leetcode/blob/master/二叉树/297二叉树的序列化与反序列化.py
    

    相关文章

      网友评论

          本文标题:Leetcode

          本文链接:https://www.haomeiwen.com/subject/qsqwyctx.html