Code Monkey home page Code Monkey logo

Comments (203)

lection avatar lection commented on August 13, 2024 4

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

from algorithm.

James-Ren avatar James-Ren commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

from algorithm.

UCSBGauchos avatar UCSBGauchos commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

from algorithm.

UCSBGauchos avatar UCSBGauchos commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

学习总结很详细,看了242代码的实现,用了两种不同地方式,为我打开了思路。

from algorithm.

HugoWen avatar HugoWen commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

学习总结很赞,学习了~

from algorithm.

James-Ren avatar James-Ren commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

代码很工整,变量命名很清晰,学习了。

from algorithm.

liveForExperience avatar liveForExperience commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

from algorithm.

XueminZhu avatar XueminZhu commented on August 13, 2024

#作业提交
学号:035
username:XueminZhu
代码作业:https://github.com/GitGarden2019/algorithm/tree/master/Week_02/id_35
学习总结:#97
使用语言:JAVA

from algorithm.

jianywu avatar jianywu commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

赞,滑窗的方法也不错的。

from algorithm.

jianywu avatar jianywu commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

JAVA真好,有set.contains()方法,CPP只能set.find(val) != set.end(), 写得很累。

from algorithm.

jianywu avatar jianywu commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

Go语言的for循环没有使用括号看起来不大习惯,不过代码写得很赞

from algorithm.

jianywu avatar jianywu commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

赞,学习总结确实很赞,学习了,可以按数据结构分别来总结。

from algorithm.

jianywu avatar jianywu commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

Markdown用得很好,赞。LCA->lowest common ancestor.

from algorithm.

James-Ren avatar James-Ren commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

一道题多种解法,赞,不同类型的题目放在不同目录中,很清晰。文件命名很好,但是不确定是否符合作业的规范,有点打擦边球的感觉,建议确认下比较好。

from algorithm.

James-Ren avatar James-Ren commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

文档写得很详细,对题目做了多解法,并把思路和过程写得很详细,还有自己的总结。多向你学习。

from algorithm.

James-Ren avatar James-Ren commented on August 13, 2024

#作业提交
学号:035
username:XueminZhu
代码作业:https://github.com/GitGarden2019/algorithm/tree/master/Week_02/id_35
学习总结:#97
使用语言:JAVA

看到了一些用java.util.function.Function,java.util.stream.Collectors的代码,我不是很懂java,但是看上去很不错,Java现在支持写函数式代码了。长见识了。

from algorithm.

maxyzli avatar maxyzli commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:James-Ren/algorithm:Week_02/id_10@master
学习总结:#89
使用语言:Go

有些題目不太會做,看了您的代碼比較清晰了,感謝。

from algorithm.

maxyzli avatar maxyzli commented on August 13, 2024

#作業提交
學號:029
username:LIYINGZHEN
代碼作業:#101
學習總結:#100
使用語言:Go

from algorithm.

HugoWen avatar HugoWen commented on August 13, 2024

#作业提交
学号:006
username:HugoWen
代码作业:https://github.com/HugoWen/algorithm-1/tree/week2/Week_02/id_6
学习总结:#93
使用语言:PHP

from algorithm.

HugoWen avatar HugoWen commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

你这个目录结构会不会不给合并 😂

from algorithm.

jianywu avatar jianywu commented on August 13, 2024

#作业提交
学号:041
username:jianywu
代码作业:https://github.com/jianywu/algorithm/tree/master/Week_02/id_41
学习总结:#99
使用语言:CPP

from algorithm.

lection avatar lection commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

总结写的非常详实,有些我没做的题看这个总结也能很有帮助。

from algorithm.

lection avatar lection commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

我学习Go的计划暂时搁浅了,010同学的代码以后是我学Go时候的一个有效参考,先mark了。

from algorithm.

hiveryeah avatar hiveryeah commented on August 13, 2024

#作业提交
学号:023
username:Eva
代码作业:https://github.com/hiveryeah/algorithm/tree/master/Week_02/id_23
学习总结:#104
使用语言:Java

from algorithm.

hiveryeah avatar hiveryeah commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

延迟获得的解题实践哇!不能同意更多,确实先啃难度大的,再来几个难度小的,灰常有心理作用。

from algorithm.

mayon avatar mayon commented on August 13, 2024

#作业提交
学号:024
username:Mayon
代码作业:Week_02/id_24
学习总结:#106
使用语言:Python

from algorithm.

hiveryeah avatar hiveryeah commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

学习总结结构很清晰,学习了!

from algorithm.

James-Ren avatar James-Ren commented on August 13, 2024

#作業提交
學號:029
username:LIYINGZHEN
代碼作業:#101
學習總結:#100
使用語言:Go

从代码中学到很多go的标准库的用法和专业写法,对我学习Go有很大的帮助,比如:sort.Slice的用法,这个api的用法资料很少,但是代码很简洁,比我那个wrapper要简化很多。学习了

from algorithm.

Shockang avatar Shockang commented on August 13, 2024

#作业提交
学号:012
username:Shockang
代码作业:https://github.com/Shockang/algorithm/tree/master/Week_02/id_12
学习总结:https://github.com/Shockang/algorithm/blob/master/Week_02/id_12/学习总结.md
使用语言:Java

from algorithm.

Shockang avatar Shockang commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

#作业提交
学号:035
username:XueminZhu
代码作业:https://github.com/GitGarden2019/algorithm/tree/master/Week_02/id_35
学习总结:#97
使用语言:JAVA

看到了一些用java.util.function.Function,java.util.stream.Collectors的代码,我不是很懂java,但是看上去很不错,Java现在支持写函数式代码了。长见识了。

建议只保留核心代码哈,这样我们看起来也舒服点,测试代码也建议使用JUnit,当然只是个建议哈,代码正确性肯定都没有问题的

from algorithm.

Shockang avatar Shockang commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

Markdown用得很好,赞。LCA->lowest common ancestor.

242题总结了很多方法,赞一个,很多方法都是头一次见到

from algorithm.

Shockang avatar Shockang commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

代码很工整,变量命名很清晰,学习了。

236题我感觉可以再简洁一点,避免使用太多的if判断比较好

from algorithm.

Shockang avatar Shockang commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

你这个目录结构会不会不给合并 😂

目录结构我感觉挺合适的,看起来分门别类比较方便找到自己感兴趣的内容,方便我们review

from algorithm.

Shockang avatar Shockang commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

你这个目录结构会不会不给合并 😂

第220题的第3道解法确实令人震惊,这个解法估计是我这次review最大的收获了,学习了

from algorithm.

lection avatar lection commented on August 13, 2024

#作业提交
学号:023
username:Eva
代码作业:https://github.com/hiveryeah/algorithm/tree/master/Week_02/id_23
学习总结:#104
使用语言:Java

用数组在某些场景替代hashmap,确实是一个好用的技巧,学习了。

from algorithm.

HugoWen avatar HugoWen commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

总结写的好细致,向你学习!

from algorithm.

HugoWen avatar HugoWen commented on August 13, 2024

#作业提交
学号:041
username:jianywu
代码作业:https://github.com/jianywu/algorithm/tree/master/Week_02/id_41
学习总结:#99
使用语言:CPP

103题不用reverse,直接在插入时做处理会不会更优化些😁

from algorithm.

HugoWen avatar HugoWen commented on August 13, 2024

#作业提交
学号:012
username:Shockang
代码作业:https://github.com/Shockang/algorithm/tree/master/Week_02/id_12
学习总结:https://github.com/Shockang/algorithm/blob/master/Week_02/id_12/学习总结.md
使用语言:Java

第3题用双端队列,新思路,学习了~

from algorithm.

mayon avatar mayon commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

看了下 726 ,不一样的解题思路,向你学习

from algorithm.

mayon avatar mayon commented on August 13, 2024

#作业提交
学号:006
username:HugoWen
代码作业:https://github.com/HugoWen/algorithm-1/tree/week2/Week_02/id_6
学习总结:#93
使用语言:PHP

看了下 3 的实现,感觉思路很类似,不一样的代码实现

from algorithm.

mayon avatar mayon commented on August 13, 2024

#作業提交
學號:029
username:LIYINGZHEN
代碼作業:#101
學習總結:#100
使用語言:Go

虽然没学过 GO,不过解题思路学习了哈😁

from algorithm.

mayon avatar mayon commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

你的总结写的好详细啊,太赞了!!!每个解法都做了详细说明,我一直担心过几天就看不懂自己的答案了,要向你学习把总结写完整点。

from algorithm.

mayon avatar mayon commented on August 13, 2024

#作业提交
学号:012
username:Shockang
代码作业:https://github.com/Shockang/algorithm/tree/master/Week_02/id_12
学习总结:https://github.com/Shockang/algorithm/blob/master/Week_02/id_12/学习总结.md
使用语言:Java

看了 242 ,你的实现好巧妙啊,我照着老师思路来写的,你做了改进,只需要 new 一个整型数组,需要额外占用的空间降低一半

from algorithm.

maxyzli avatar maxyzli commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

解題很用心,值得學習

from algorithm.

jackystayfoolish avatar jackystayfoolish commented on August 13, 2024

#作业提交
学号:037
username:jackystayfoolish
代码作业:https://github.com/jackystayfoolish/algorithm/tree/master/Week_02/id_37
学习总结:#111
使用语言:JAVA

from algorithm.

jackystayfoolish avatar jackystayfoolish commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

优化,直接返回false思路学到了

from algorithm.

jackystayfoolish avatar jackystayfoolish commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

235题的两种解法学到了

from algorithm.

jackystayfoolish avatar jackystayfoolish commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

每道题都有详细的注释和多种解法,很赞!

from algorithm.

jackystayfoolish avatar jackystayfoolish commented on August 13, 2024

#作业提交
学号:035
username:XueminZhu
代码作业:https://github.com/GitGarden2019/algorithm/tree/master/Week_02/id_35
学习总结:#97
使用语言:JAVA

two sum的n^2和logn复杂度的对比学习了

from algorithm.

jackystayfoolish avatar jackystayfoolish commented on August 13, 2024

#作业提交
学号:012
username:Shockang
代码作业:https://github.com/Shockang/algorithm/tree/master/Week_02/id_12
学习总结:https://github.com/Shockang/algorithm/blob/master/Week_02/id_12/学习总结.md
使用语言:Java

学习利用26个长度的数组来判断,真的比较巧妙

from algorithm.

liujianbo avatar liujianbo commented on August 13, 2024

#作业提交
学号:038
username:liujianbo
代码作业:https://github.com/liujianbo/algorithm/tree/master/Week_02/id_38
学习总结:#114
使用语言:Java

from algorithm.

BrunoYang0918 avatar BrunoYang0918 commented on August 13, 2024

#作业提交
学号:015
username:BrunoYang0918
代码作业:https://github.com/BrunoYang0918/algorithm/tree/master/Week_02/id_15
学习总结:#117
使用语言:Python

from algorithm.

liujianbo avatar liujianbo commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

同学242的解法是一种通用字符解法,不限于小写字母,感觉不一定要两个循环,可以在一个循环里处理两个字符。

from algorithm.

liujianbo avatar liujianbo commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

同学每题都给出了多种解法,很详细,向你学习。

from algorithm.

theonerk avatar theonerk commented on August 13, 2024

#作业提交
学号:013
username:rongk
代码作业:https://github.com/theonerk/algorithm/tree/master/Week_02/id_13
学习总结:none
使用语言:nodejs

代码作业在github的链接:
https://github.com/theonerk/algorithm/tree/master/Week_02/id_13

from algorithm.

liujianbo avatar liujianbo commented on August 13, 2024

#作业提交
学号:035
username:XueminZhu
代码作业:https://github.com/GitGarden2019/algorithm/tree/master/Week_02/id_35
学习总结:#97
使用语言:JAVA

有几题看到了新的解题方法,值得借鉴。

from algorithm.

liujianbo avatar liujianbo commented on August 13, 2024

#作业提交
学号:023
username:Eva
代码作业:https://github.com/hiveryeah/algorithm/tree/master/Week_02/id_23
学习总结:#104
使用语言:Java

同学代码超简洁。

from algorithm.

liujianbo avatar liujianbo commented on August 13, 2024

#作业提交
学号:012
username:Shockang
代码作业:https://github.com/Shockang/algorithm/tree/master/Week_02/id_12
学习总结:https://github.com/Shockang/algorithm/blob/master/Week_02/id_12/学习总结.md
使用语言:Java

看到同学的总结很有感触,发现前进的路上我已经开始掉队,还给自己一些借口,很惭愧。努力的同学还是很认真地把每题的多种解法都做了一遍,而我只是把简单题的一种解法做了一下。坚持✊

from algorithm.

liveForExperience avatar liveForExperience commented on August 13, 2024

#作业提交
学号:012
username:Shockang
代码作业:Shockang/algorithm:Week_02/id_12@master
学习总结:https://github.com/Shockang/algorithm/blob/master/Week_02/id_12/学习总结.md
使用语言:Java

哈哈,第3题的解法我顺走了

from algorithm.

flamencoy avatar flamencoy commented on August 13, 2024

#作业提交
学号:033
username:flamencoy
代码作业:https://github.com/flamencoy/algorithm/tree/master/Week_02/id_33
学习总结:#33
使用语言:Java

from algorithm.

liveForExperience avatar liveForExperience commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:liveForExperience/algorithm:Week_02/id_18@master
学习总结:#95
使用语言:Java

你的总结写的好详细啊,太赞了!!!每个解法都做了详细说明,我一直担心过几天就看不懂自己的答案了,要向你学习把总结写完整点。

试试先把思路写下来,再写代码就行了。一起加油吧:D

from algorithm.

liveForExperience avatar liveForExperience commented on August 13, 2024

#作业提交
学号:035
username:XueminZhu
代码作业:GitGarden2019/algorithm:Week_02/id_35@master
学习总结:#97
使用语言:JAVA

two sum解法学习了!

from algorithm.

thisyears avatar thisyears commented on August 13, 2024

#作业提交
学号:022
username:thisyears
代码作业:https://github.com/thisyears/algorithm/tree/master/Week_02/id_22
学习总结:#122
使用语言:JavaScript

from algorithm.

liujianbo avatar liujianbo commented on August 13, 2024

#作业提交
学号:037
username:jackystayfoolish
代码作业:https://github.com/jackystayfoolish/algorithm/tree/master/Week_02/id_37
学习总结:#111
使用语言:JAVA

关于二叉树和散列表又学习了下,二叉树表现更稳定,散列表的高效依赖与哈希函数的设计。且哈希函数的扩容容易造成性能消耗。

from algorithm.

liveForExperience avatar liveForExperience commented on August 13, 2024

#作业提交
学号:012
username:Shockang
代码作业:Shockang/algorithm:Week_02/id_12@master
学习总结:https://github.com/Shockang/algorithm/blob/master/Week_02/id_12/学习总结.md
使用语言:Java

242题我也顺走了:D

from algorithm.

liveForExperience avatar liveForExperience commented on August 13, 2024

#作业提交
学号:037
username:jackystayfoolish
代码作业:https://github.com/jackystayfoolish/algorithm/tree/master/Week_02/id_37
学习总结:#111
使用语言:JAVA

关于二叉树和散列表又学习了下,二叉树表现更稳定,散列表的高效依赖与哈希函数的设计。且哈希函数的扩容容易造成性能消耗。

同意楼上同学,学习了

from algorithm.

flamencoy avatar flamencoy commented on August 13, 2024

#作业提交
学号:035
username:XueminZhu
代码作业:https://github.com/GitGarden2019/algorithm/tree/master/Week_02/id_35
学习总结:#97
使用语言:JAVA

每道题都用了很多种解法,学习了~ 有些代码可以再简洁些

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作业提交
学号:001
username:AAluoxiang
代码作业:https://github.com/AAluoxiang/algorithm/tree/master/Week_02/id_1
学习总结:#123
使用语言:JAVA

from algorithm.

xiaoluome avatar xiaoluome commented on August 13, 2024

#作业提交
学号:036
username:xiaoluome
代码作业:https://github.com/xiaoluome/algorithm/tree/master/Week_02/id_36
学习总结:#125
使用语言:Python

from algorithm.

flamencoy avatar flamencoy commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

总结的很到位,虽然使用的不同的语言,但仍然能给我很多不一样的思路,学习了~

from algorithm.

flamencoy avatar flamencoy commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

逻辑很清晰,小小建议:236代码可以再简洁一些哈~

from algorithm.

xiaoluome avatar xiaoluome commented on August 13, 2024

#作业提交
学号:023
username:Eva
代码作业:https://github.com/hiveryeah/algorithm/tree/master/Week_02/id_23
学习总结:#104
使用语言:Java

我觉得最好对i = Math.max(index[s.charAt(j)], i);加个条件判断,这样会代码严谨点,这只是一个建议。

from algorithm.

flamencoy avatar flamencoy commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

你这个目录结构会不会不给合并 😂

能看得出来真的很认真,每道题都用了很多种解法,要向你学习。不过同意楼上的,这个目录不造能不能合并哈。。

from algorithm.

xiaoluome avatar xiaoluome commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

这个笔记记的很详细,我也在写类似的,但是不多,还是向你学习啊

from algorithm.

flamencoy avatar flamencoy commented on August 13, 2024

#作业提交
学号:041
username:jianywu
代码作业:https://github.com/jianywu/algorithm/tree/master/Week_02/id_41
学习总结:#99
使用语言:CPP

厉害了,做了这么多题,向你学习~

from algorithm.

xiaoluome avatar xiaoluome commented on August 13, 2024

#作业提交
学号:041
username:jianywu
代码作业:https://github.com/jianywu/algorithm/tree/master/Week_02/id_41
学习总结:#99
使用语言:CPP

我也想用C++来写,非常简洁啊,看来我后面得计划下C++的学习了

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

两个题的思路整体来说都挺清晰的。242题的话解题思路可以有很多种,当前的你这种我觉得是通用的,不仅限于字母。 针对这题的话,1、完全可以两个字母排序后比较;2、既然都是小写字母的话,可以用长度为26的数组来实现。 你这里使用map的话,其实也可以不用循环3次,两次就可以了。因为长度肯定是一致的,第一次循环的时候就同时操作加和减了

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作业提交
学号:033
username:flamencoy
代码作业:https://github.com/flamencoy/algorithm/tree/master/Week_02/id_33
学习总结:#33
使用语言:Java

写的挺好的,简洁易懂

from algorithm.

XueminZhu avatar XueminZhu commented on August 13, 2024

#作业提交
学号:023
username:Eva
代码作业:https://github.com/hiveryeah/algorithm/tree/master/Week_02/id_23
学习总结:#104
使用语言:Java

递归获取深度的解法很明了啊

from algorithm.

hhf666feng avatar hhf666feng commented on August 13, 2024

#作业提交
学号:026
username:huanghaifeng
代码作业:https://github.com/hhf666feng/algorithm/tree/master/Week_02/id_26
学习总结:#127
使用语言:Python

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作业提交
学号:023
username:Eva
代码作业:https://github.com/hiveryeah/algorithm/tree/master/Week_02/id_23
学习总结:#104
使用语言:Java

代码挺清晰简洁的, 下次文件后缀名换一下吧,.java 文件,txt 文件是真的皮

from algorithm.

xiaoluome avatar xiaoluome commented on August 13, 2024

#作业提交
学号:015
username:BrunoYang0918
代码作业:https://github.com/BrunoYang0918/algorithm/tree/master/Week_02/id_15
学习总结:#117
使用语言:Python

你这第1题的代码,最后一行最好加上return None,不然代码很不严谨。

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作业提交
学号:037
username:jackystayfoolish
代码作业:https://github.com/jackystayfoolish/algorithm/tree/master/Week_02/id_37
学习总结:#111
使用语言:JAVA

总结写的很棒,代码很清晰,242题的话,可以不适用三个循环,其实两个就可以的,在第一层循环的时候同时加加和减减

from algorithm.

XueminZhu avatar XueminZhu commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

LeetCode_3_18 递归的解法让我很受益,但是每次递归里面都需要Set set = new HashSet<>();这步的话带来新的空间消耗吧

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作业提交
学号:038
username:liujianbo
代码作业:https://github.com/liujianbo/algorithm/tree/master/Week_02/id_38
学习总结:#114
使用语言:Java

代码不错哦

from algorithm.

XueminZhu avatar XueminZhu commented on August 13, 2024

#作业提交
学号:038
username:liujianbo
代码作业:https://github.com/liujianbo/algorithm/tree/master/Week_02/id_38
学习总结:#114
使用语言:Java

首先一进去,markdown很清晰工整,然后点进去的代码都有几种不一样的解法,给你点赞

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

总结的很好,解题思路很有多种,代码路径 ???

from algorithm.

AAluoxiang avatar AAluoxiang commented on August 13, 2024

#作業提交
學號:029
username:LIYINGZHEN
代碼作業:#101
學習總結:#100
使用語言:Go

挺好,学习了

from algorithm.

hhf666feng avatar hhf666feng commented on August 13, 2024

#作业提交
学号:003
username:lection
代码作业:https://github.com/lection/algorithm-1/tree/master/Week_02/id_3
学习总结:#96
使用语言:python

Leetcode 220 在国际站上这种解法有个证明,大家可以参考下 =>
如果: | nums[i] - nums[j] | <= t 式a
等价: | nums[i] / t - nums[j] / t | <= 1 式b
推出: | floor(nums[i] / t) - floor(nums[j] / t) | <= 1 式c
​等价: floor(nums[j] / t) ∈ {floor(nums[i] / t) - 1, floor(nums[i] / t), floor(nums[i] / t) + 1} 式d
其中式b是式c的充分非必要条件,因为逆否命题与原命题等价,所以:
如果: floor(nums[j] / t) ∉ {floor(nums[i] / t) - 1, floor(nums[i] / t), floor(nums[i] / t) + 1} 非d
推出: | nums[i] - nums[j] | > t 非a

    https://leetcode.com/problems/contains-duplicate-iii/discuss/61756/Python-OrderedDict

from algorithm.

rocinn avatar rocinn commented on August 13, 2024

#作业提交
学号:007
username:Yrp1994
代码作业:https://github.com/Yrp1994/algorithm/tree/master/Week_02/id_7
学习总结:#140
使用语言:C#

from algorithm.

hhf666feng avatar hhf666feng commented on August 13, 2024

#作业提交
学号:010
username:James-Ren
代码作业:https://github.com/James-Ren/algorithm/tree/master/Week_02/id_10
学习总结:#89
使用语言:Go

知识点梳理的很全,赞

from algorithm.

hhf666feng avatar hhf666feng commented on August 13, 2024

#作业提交
学号:018
username:liveForExperience
代码作业:https://github.com/liveForExperience/algorithm/tree/master/Week_02/id_18
学习总结:#95
使用语言:Java

这位同学解法思路写的好认真,学习了👍

from algorithm.

XueminZhu avatar XueminZhu commented on August 13, 2024

#作业提交
学号:007
username:Yrp1994
代码作业:https://github.com/Yrp1994/algorithm/tree/master/Week_02/id_7
学习总结:#暂无
使用语言:C#

作为写Java代码的看C#还是比较亲切的,有效的字母异位词用26位的数组去表示,给力像我新的思路

from algorithm.

hhf666feng avatar hhf666feng commented on August 13, 2024

#作业提交
学号:036
username:xiaoluome
代码作业:https://github.com/xiaoluome/algorithm/tree/master/Week_02/id_36
学习总结:#125
使用语言:Python

L220对称二叉树迭代的写法不错,学习了

from algorithm.

XueminZhu avatar XueminZhu commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

代码很清晰

from algorithm.

hhf666feng avatar hhf666feng commented on August 13, 2024

#作业提交
学号:037
username:jackystayfoolish
代码作业:https://github.com/jackystayfoolish/algorithm/tree/master/Week_02/id_37
学习总结:#111
使用语言:JAVA

关于递归和回溯的心得很赞,学习了

from algorithm.

hhf666feng avatar hhf666feng commented on August 13, 2024

#作业提交
学号:006
username:HugoWen
代码作业:https://github.com/HugoWen/algorithm-1/tree/week2/Week_02/id_6
学习总结:#93
使用语言:PHP

PHP是世界上最好的语言😄

from algorithm.

tripleSim avatar tripleSim commented on August 13, 2024

#作业提交
学号:030
username:tripleSim
代码作业:https://github.com/tripleSim/algorithm/tree/master/Week_02/id_30
学习总结:#129
使用语言:C++

from algorithm.

duoyuli avatar duoyuli commented on August 13, 2024

#作业提交
学号:009
username:hiColors
代码作业:https://github.com/hiColors/algorithm/tree/master/Week_02/id_9
学习总结:#131
使用语言:Java

from algorithm.

duoyuli avatar duoyuli commented on August 13, 2024

#作业提交
学号:008
username:UCSBGauchos
代码作业:https://github.com/UCSBGauchos/algorithm/tree/master/Week_02/id_8
学习总结:#92
使用语言:JAVA

242 我写了一种和你这个思路差不多,但是发现用了 Java 8 的 Stream 导致性能差一倍左右,后续有机会看下 Stream 的实现。

from algorithm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.