会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
killerboom
博客园
首页
新随笔
联系
订阅
管理
2021年10月22日
【做题心得】最长连续序列
摘要: LeetCode 剑指Offer II 119 一道水题,我首先想到的做法是暴力的枚举。 class Solution { public: int dp[100100],ans = 1; int longestConsecutive(vector<int>& nums) { int n = nums
阅读全文
posted @ 2021-10-22 20:51 killerboom
阅读(57)
评论(1)
推荐(0)
公告