-
Notifications
You must be signed in to change notification settings - Fork 150
算法训练营第二周作业 #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
学号:086 username:SherryShi0108 |
学号:137 Username:songsmith |
学号:126 Username:suncen0505 |
学号:062 username:shimmer236 |
学号:150 username:honeyaya |
学号:061 username:otkinlife(贾凯超) |
学号:116 username:Maybrittnelson |
我这有个疑问,就是为什么要减少return 呢?我倒觉得没必要的时候,直接return ,省去后续的处理,不是更好吗 |
我也做了几道树的题目,总体也是磕磕绊绊的,但是我的思路是 先把需要的步骤大概列出来,然后再填充临界条件,退出条件,递归条件 |
总结的挺好的,可以多换集中解题技巧,比如我的可能是先把需要的步骤大概列出来,然后再填充临界条件,退出条件,递归条件 |
我做第一个二叉树的题的时候,也卡壳了 ,还是觉得二叉树没有屡清楚,后续慢慢把树的特征画图出来,慢慢一点一点解,发现还是挺有趣的 |
字符串的那个题我觉得挺好玩,我用的是hash存储,但是更优化的解题思路是 字符-a作为数组的下标,我觉得这种方法太秒了,哈哈,也可以收录到你的内容里去 |
学号:038 Username:jianghaoyuan2007 |
学号:033 Username: FollowMyHeart |
Python语言中变量跟None比较相等是不是应该用is? |
学号:014 Username: aiter |
学号:144 Username:liutong |
学号:082 Username:IMC666 |
学号:009 Username:AHaoPang |
学号:001 Username:zouyingjie |
|
学号: 122 |
学号: 044 |
== 是对内容的判断; is 是对 id 的判断 用 is 会更好一些,速度比 == 要快,因为 == 要运行查找和比较函数 |
看到你用 python 写的 '242.有效的字母异位词' 第二种方法是 调用排序函数 然后直接判断相等,不禁感叹前人栽树 后人乘凉 |
你这不是在LeetCode上做的吧,创建了256个空间的数组,在比较字母种类不多的情况下,变成稀疏数组了,且 题目中只要求比较小写字母,你用26个空间的数组即可 |
从二叉树中找到 第二小值 的节点 题,我是创建了一个私有变量用于保存第二小的值 |
学号:006 Username:yuqiu-pp |
学号:091 username:籍东文 |
学号: 071; GitHub Username: hfcc8685 |
学号:088 username: Hermancg |
学号:012 username: hijkoo |
学号:136 Username:yuzewang |
学号:094 Username: ellie88 |
学号:054 Username: taolei0108 |
学号:41 Username:mikejacken 学习感言:#473 |
学号:17 Username:zyterenec |
学号:008 username:Uriah |
学号:077 username:xiangfeifei |
他的 242 感觉好别致
学习了,拜谢
[email protected]
发件人: GUOSF
发送时间: 2019-04-28 23:07
收件人: algorithm001/algorithm
抄送: 红桃六; Comment
主题: Re: [algorithm001/algorithm] 算法训练营第二周作业 (#52)
学号:069 username:GradyWong
第二周作业链接:https://github.com/GradyWong/algorithm/tree/master/Week_02/id_69
学习感言:#332
你的242 还简单点。
―
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
总结的挺好的 |
写的挺详细的~ |
总结的很好,很详细 |
|
写的挺好的! |
学号:095 username:AndroidQin |
学号:103 username:JYSDeveloper |
学号:115 username:1005419213zxf |
学号:128 username:yimeng |
收到,谢谢 我会按时到达!
| |
刘彬
|
|
邮箱:[email protected]
|
签名由 网易邮箱大师 定制
在2019年05月14日 12:01,yimeng 写道:
学号:128 username:yimeng
第二周作业链接:https://github.com/yimeng/algorithm/tree/master/Week_02/id_128
学习感言:#438
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
学号:132 Username:wwb4694376 |
作业补交(第二周时没有及时补充学习感言内容) |
作业补交 |
学习总结补交 |
作业补交 |
学号:020 Username:lcfgrn |
Uh oh!
There was an error while loading. Please reload this page.
本周重点学习知识点
跳表、散列表、哈希算法、二叉树、红黑树
要求
注意事项
第二周题目
哈希表
简单:https://leetcode-cn.com/problems/valid-anagram/
中等:https://leetcode-cn.com/problems/top-k-frequent-words
中等:https://leetcode-cn.com/problems/find-duplicate-file-in-system/
困难:https://leetcode-cn.com/problems/substring-with-concatenation-of-all-words/
困难:https://leetcode-cn.com/problems/number-of-atoms/
二叉树
简单:https://leetcode-cn.com/problems/second-minimum-node-in-a-binary-tree/
中等:https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/
中等:https://leetcode-cn.com/problems/all-nodes-distance-k-in-binary-tree/
困难:https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self/
困难:https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/
二叉搜索树
简单:https://leetcode-cn.com/problems/minimum-distance-between-bst-nodes/
中等:https://leetcode-cn.com/problems/range-sum-of-bst/
中等:https://leetcode-cn.com/problems/contains-duplicate-iii/
困难:https://leetcode-cn.com/problems/count-of-range-sum/
困难:https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self/
作业提交规则
The text was updated successfully, but these errors were encountered: