当老司机学会了贪心算法 :: labuladong的算法小抄 #1084
Replies: 18 comments
-
图像法现在过不了最后两个测试用例了 |
Beta Was this translation helpful? Give feedback.
-
@naruuu-xx 感谢指出,已修复,这里是我考虑不周,只要把 |
Beta Was this translation helpful? Give feedback.
-
贪心解法后一个返回值可以直接返回 |
Beta Was this translation helpful? Give feedback.
-
不好意思,我有点晕, 这图像法的图是用的哪个case? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
如果例子就是题目中的例子:
那么: 怎么算也不会有上面的那个曲线. |
Beta Was this translation helpful? Give feedback.
-
个人认为 只是举个例子嘛 , 能让人看懂就行,没必要和题目给出的示例一样。只要意思能表达出来就行 |
Beta Was this translation helpful? Give feedback.
-
@tommy-qichang 我随便编的 case,不是题目给的,理解意思就好 |
Beta Was this translation helpful? Give feedback.
-
谢谢解释. 能够理解什么意思,但是如果图文匹配就更好了 :-) 👍 |
Beta Was this translation helpful? Give feedback.
-
嗯,有道理,已补上 |
Beta Was this translation helpful? Give feedback.
-
什么时候我也能像dong哥一样强😭 |
Beta Was this translation helpful? Give feedback.
-
dong哥好,贪心解法的注释 |
Beta Was this translation helpful? Give feedback.
-
@lianchengmingjue 嗯,你说的有道理,很细节👍,我修改下 |
Beta Was this translation helpful? Give feedback.
-
「贪心解法」如何提现了贪心的思想呢? |
Beta Was this translation helpful? Give feedback.
-
check in |
Beta Was this translation helpful? Give feedback.
-
return start == n ? 0 : start; |
Beta Was this translation helpful? Give feedback.
-
文章链接点这里:当老司机学会了贪心算法
评论礼仪 见这里,违者直接拉黑。
Beta Was this translation helpful? Give feedback.
All reactions