会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
I love dodo
《dodo》
博客园
首页
新随笔
联系
订阅
管理
2019年9月30日
leetcode 27. 移除元素 【时间击败100.00%】【内存击败84.67%】
摘要: 1 public int removeElement(int[] nums, int val) { 2 int last = nums.length - 1; 3 for (int i = 0; i <= last && last >= 0; i++) { 4 while (last >= 0 && nums[last] == val) last--; 5 if (last >= 0 && i <
阅读全文
posted @ 2019-09-30 22:14 dodoBehind
阅读(153)
评论(0)
推荐(0)
编辑
公告