会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Geek Song
保持对科技的热情,不断积累自己的技术套装,力求能够快速从0到1构建整个项目,生命因技术而更加精彩!
博客园
首页
新随笔
联系
订阅
管理
2021年10月20日
【leetcode】26:删除有序数组中的重复项 II
摘要: 这个题目虽然说只有简单难度,但是实际上这个题目的难度很大。尤其是这种双指针的做法,很少有人能够想到。 我们可以设立一个快指针和一个慢指针,快指针在数组的第二个位置,也就是index=1的时候,慢指针在第一个位置,也就是在index=0的时候。 当快指针和慢指针所指向的元素的大小不相同的时候,慢指针就
阅读全文
posted @ 2021-10-20 22:36 Geeksongs
阅读(26)
评论(0)
推荐(0)
编辑
公告
Coded by Geeksongs on Linux
All rights reserved, no one is allowed to pirate or use the document for other purposes.