会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
现在开始努力
博客园
首页
新随笔
联系
订阅
管理
2022年2月16日
第31天--算法(Leetcode 128,130,131)
摘要: 128.最长连续序列 public int longestConsecutive(int[] nums) { int len = 0; HashMap<Integer,Integer> hm = new HashMap<>(); for(int i : nums) { if(!hm.contains
阅读全文
posted @ 2022-02-16 15:29 现在开始努力
阅读(25)
评论(0)
推荐(0)
公告