https://leetcode.com/problems/binary-search/
kind of interesting in the way that I come in unexpected and it is quite satisfying to solve it
the most natural idea for me is [left,right]
https://leetcode.com/problems/remove-element/
I think the issue with this fast and slow pointer is that once the slow and fast pointer is not aligned, update all value after this
本文讨论了LeetCode中的两个题目,涉及二分搜索算法的巧妙之处以及使用快慢指针解决removeelement问题时的策略。作者分享了解决这些问题的心得体会。
525

被折叠的 条评论
为什么被折叠?



