fucking-algorithm icon indicating copy to clipboard operation
fucking-algorithm copied to clipboard

刷算法全靠套路,认准 labuladong 就够了!English version supported! Crack LeetCode, not only how, but also why.

Results 336 fucking-algorithm issues
Sort by recently updated
recently updated
newest added

1. 修复「如何去除有序数组的重复元素.md」中的错别字,改动如下: 我们让慢指针 `slow` 走左后面 -> 我们让慢指针 `slow` 走在后面

fix: javascript实现全排列传参修复

# 第二章、手把手刷动态规划 :: labuladong的算法小抄 [https://labuladong.github.io/algo/3/](https://labuladong.github.io/algo/3/)

想知道![这篇文章](https://github.com/labuladong/fucking-algorithm/blob/master/%E9%AB%98%E9%A2%91%E9%9D%A2%E8%AF%95%E7%B3%BB%E5%88%97/%E6%B0%B4%E5%A1%98%E6%8A%BD%E6%A0%B7.md)里面提到的基于几何分布(geometric distribution),时间复杂度为 O(k + klog(n/k))的水塘抽样算法的改进具体怎么实现呀,我用谷歌没有搜到,请问有大佬知道具体叫什么名字吗?

文章链接点这里:[剪视频剪出一个贪心算法](https://labuladong.github.io/article/fname.html?fname=剪视频) 评论礼仪 [见这里](https://mp.weixin.qq.com/s/YdSoYZS0QjZpbphQlpHyyA),违者直接拉黑。

你好,我发现如下文章有 bug(点击文字可跳转到相关文章): labuladong的算法小抄page366 问题描述: in this bruce force solution, line: `ans+= min(l_max, r_max) - height[i] `could be negative it should ignore when it's negative like example with index 1 `l_max...

bug