会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Vingkin
博客园
首页
新随笔
联系
订阅
管理
2020年11月7日
26.删除排序数组中的重复项
摘要: 自己的写法,不想评价 用到了双指针和冒泡的思想,时间复杂度有点慢O(n^2),空间复杂度很行。 class Solution { public int removeDuplicates (int[] nums) { for (int i=0; i<nums.length-1; i++) { if (
阅读全文
posted @ 2020-11-07 19:27 Vingkin
阅读(68)
评论(0)
推荐(0)
公告