git地址
https://github.com/yangyu2010/leetcode
其他
https://github.com/yangyu2010/leetcode/blob/master/leetcode/1两数之和.py
https://github.com/yangyu2010/leetcode/blob/master/leetcode/7整数反转.py
https://github.com/yangyu2010/leetcode/blob/master/leetcode/66加一.py
https://github.com/yangyu2010/leetcode/blob/master/leetcode/704二分查找.py
栈
https://github.com/yangyu2010/leetcode/blob/master/栈/20有效的括号.py
https://github.com/yangyu2010/leetcode/blob/master/栈/150逆波兰表达式求值.py
https://github.com/yangyu2010/leetcode/blob/master/栈/155最小栈.py
队列
https://github.com/yangyu2010/leetcode/blob/master/队列/622循环队列.py
数组
https://github.com/yangyu2010/leetcode/blob/master/数组/27移除元素.py
- 在排序数组中查找元素的第一个和最后一个位置
https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/
https://github.com/yangyu2010/leetcode/blob/master/数组/34在排序数组中查找元素的第一个和最后一个位置.py
https://github.com/yangyu2010/leetcode/blob/master/数组/54螺旋矩阵.py
https://github.com/yangyu2010/leetcode/blob/master/数组/118杨辉三角.py
https://github.com/yangyu2010/leetcode/blob/master/数组/119杨辉三角%20II.py
- 两数之和 II - 输入有序数组
https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/
https://github.com/yangyu2010/leetcode/blob/master/数组/167两数之和II-输入有序数组.py
https://github.com/yangyu2010/leetcode/blob/master/数组/189旋转数组.py
https://github.com/yangyu2010/leetcode/blob/master/数组/209长度最小的子数组.py
https://github.com/yangyu2010/leetcode/blob/master/数组/485最大连续1的个数.py
https://github.com/yangyu2010/leetcode/blob/master/数组/498对角线遍历.py
https://github.com/yangyu2010/leetcode/blob/master/数组/561数组拆分I.py
https://github.com/yangyu2010/leetcode/blob/master/数组/724寻找数组的中心索引.py
https://github.com/yangyu2010/leetcode/blob/master/数组/739每日温度.py
https://github.com/yangyu2010/leetcode/blob/master/数组/747至少是其他数字两倍的最大数.py
字符串
https://github.com/yangyu2010/leetcode/blob/master/字符串/3无重复字符的最长子串.py
- 字符串转换整数 (atoi)
https://leetcode-cn.com/problems/string-to-integer-atoi/
https://github.com/yangyu2010/leetcode/blob/master/字符串/8字符串转换整数.py
https://github.com/yangyu2010/leetcode/blob/master/字符串/14最长公共前缀.py
https://github.com/yangyu2010/leetcode/blob/master/字符串/28实现strStr.py
- 二进制求和
https://leetcode-cn.com/problems/a]
[pohjlo;p[']
d-binary/
https://github.com/yangyu2010/leetcode/blob/master/字符串/67二进制求和.py
https://github.com/yangyu2010/leetcode/blob/master/字符串/151翻转字符串里的单词.py
https://github.com/yangyu2010/leetcode/blob/master/字符串/344反转字符串.py
链表
https://github.com/yangyu2010/leetcode/blob/master/链表/2两数相加.py
https://github.com/yangyu2010/leetcode/blob/master/链表/19删除链表的倒数第N个节点.py
https://github.com/yangyu2010/leetcode/blob/master/链表/21合并两个有序链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/61旋转链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/141环形链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/142环形链表%20II.py
https://github.com/yangyu2010/leetcode/blob/master/链表/160相交链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/203移除链表元素.py
https://github.com/yangyu2010/leetcode/blob/master/链表/206反转链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/234回文链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/237删除链表中的节点.py
https://github.com/yangyu2010/leetcode/blob/master/链表/328奇偶链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/707设计链表.py
https://github.com/yangyu2010/leetcode/blob/master/链表/707设计链表双链表.py
二叉树
https://github.com/yangyu2010/leetcode/blob/master/二叉树/101对称二叉树.py
https://github.com/yangyu2010/leetcode/blob/master/二叉树/102二叉树的层次遍历.py
- 从前序与中序遍历序列构造二叉树
https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
https://github.com/yangyu2010/leetcode/blob/master/二叉树/105从前序与中序遍历序列构造二叉树.py
- 从中序与后序遍历序列构造二叉树
https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
https://github.com/yangyu2010/leetcode/blob/master/二叉树/106从中序与后序遍历序列构造二叉树.py
https://github.com/yangyu2010/leetcode/blob/master/二叉树/112路径总和.py
https://github.com/yangyu2010/leetcode/blob/master/二叉树/116填充每个节点的下一个右侧节点指针.py
- 二叉搜索树的最近公共祖先
https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/submissions/
https://github.com/yangyu2010/leetcode/blob/master/二叉树/235二叉搜索树的最近公共祖先.py
https://github.com/yangyu2010/leetcode/blob/master/二叉树/236二叉树的最近公共祖先.py
https://github.com/yangyu2010/leetcode/blob/master/二叉树/297二叉树的序列化与反序列化.py
网友评论