![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
朋至远方
这个作者很懒,什么都没留下…
展开
-
LintCode #1. A + B 问题
LintCode #1. A + B 问题问题地址##原创 2018-11-05 21:57:43 · 157 阅读 · 0 评论 -
LintCode #2. 尾部的零
LintCode #2. 尾部的零[问题地址]:https://www.lintcode.com/problem/trailing-zeros/description解法一:class Solution: """ @param: n: An integer @return: An integer, denote the number of trailing zeros...原创 2018-11-05 22:13:37 · 101 阅读 · 0 评论 -
Lint Code #3. 统计数字
Lint Code #3. 统计数字[问题地址]:https://www.lintcode.com/problem/digit-counts/description解法一:class Solution: """ @param k: An integer @param n: An integer @return: An integer denote the co...原创 2018-11-05 22:22:18 · 90 阅读 · 0 评论 -
LintCode #4. 丑数 II
LintCode #4. 丑数 II[问题地址]:https://www.lintcode.com/problem/ugly-number-ii/description解法一:class Solution: """ @param n: An integer @return: the nth prime number as description. """ ...原创 2018-11-05 22:27:10 · 139 阅读 · 0 评论 -
Lint Code #5. 第k大元素
Lint Code #5. 第k大元素[问题地址]:https://www.lintcode.com/problem/kth-largest-element/description解法一:class Solution: """ @param n: An integer @param nums: An array @return: the Kth largest...原创 2018-11-05 22:32:11 · 107 阅读 · 0 评论 -
Lint Code #6. 合并排序数组 II
Lint Code #6. 合并排序数组 II[问题地址]:https://www.lintcode.com/problem/merge-two-sorted-arrays/description解法一:class Solution: """ @param A: sorted integer array A @param B: sorted integer array...原创 2018-11-05 22:34:49 · 119 阅读 · 0 评论 -
LintCode #7. 二叉树的序列化和反序列化
LintCode #7. 二叉树的序列化和反序列化[问题地址]:https://www.lintcode.com/problem/serialize-and-deserialize-binary-tree/description解法一:#DFS solutionclass Solution: def serialize(self, root): # write y...原创 2018-11-12 10:23:09 · 164 阅读 · 0 评论 -
LintCode #8. 旋转字符串
LintCode #8. 旋转字符串[问题地址]:https://www.lintcode.com/problem/rotate-string/description解法一:class Solution: """ @param: str: An array of char @param: offset: An integer @return: nothing...原创 2018-11-12 10:58:06 · 156 阅读 · 0 评论 -
Lint Code #9. Fizz Buzz 问题
Lint Code #9. Fizz Buzz 问题[问题地址]:https://www.lintcode.com/problem/fizz-buzz/description解法一:class Solution: """ @param n: An integer @return: A list of strings. """ def fizzBuzz(...原创 2018-11-29 10:33:20 · 131 阅读 · 0 评论