会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Figure at a Window
管理
2022年9月19日
LeetCode448. Find All Numbers Disappeared in an Array
摘要: 题意 n个数, 统计1-n中未出现的数 方法 遍历和标记 代码 class Solution { public: vector<int> findDisappearedNumbers(vector<int>& nums) { sort(nums.begin(), nums.end()); int n
阅读全文
posted @ 2022-09-19 20:19 Figure_at_a_Window
阅读(26)
评论(0)
推荐(0)