安装node依赖包的会出现失败的情况,如下图所示: 此时 提示有些依赖树有冲突,根据提示 “ this command with --force or --legacy-peer-deps”
执行命令即可。
具体步骤如下:
1、先删除本地node-modules包
2、删掉page-loacl…
https://leetcode.cn/problems/longest-consecutive-sequence/description/?envTypestudy-plan-v2&envIdtop-100-liked
前置知识
使用集合来实现存储。
unordered_set<int> s;
for (int i 0; i < nums.size(); i ){s.insert(nums[i]);
}判断是否在集合中存在…