首页
AI Coding
数据标注
NEW
沸点
课程
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
VegetableCoder
掘友等级
目标后端开发捏
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
2
文章 2
沸点 0
赞
2
返回
|
搜索文章
最新
热门
LeetCode 881. 救生艇
```class Solution { public: int numRescueBoats(vector& people, int limit) { sort(people.begin(), peo
LeetCode 435. 无重叠区间
```class Solution { public: int eraseOverlapIntervals(vector>& q) { sort(q.begin(), q.end(), [](vect
LeetCode 455分发饼干
455. 分发饼干 排序的时间复杂度为 O(nlogn),遍历的过程为 O(n),故总时间复杂度为 O(nlogn)。
LeetCode 322. 零钱兑换 + 518. 零钱兑换 II
LeetCode 322. 零钱兑换 + 518. 零钱兑换 II动态规划 01背包、完全背包问题。
LeetCode 416. 分割等和子集
如果使用一维dp数组,物品遍历的for循环放在外层,遍历背包的for循环放在内层,且内层for循环倒序遍历!
LeetCode 1143. 最长公共子序列
```C++ class Solution { public: int longestCommonSubsequence(string text1, string text2) { int n = t
LeetCode 198. 打家劫舍
```C++ class Solution { public: int rob(vector& nums) { int n = nums.size(); vector f(n + 1), g(n +
LeetCode 1162. 地图分析
```C++ class Solution { public: int dx[4] = {-1, 0, 1, 0}, dy[4] = {0, 1, 0, -1}; int maxDistance(ve
LeetCode 695 岛屿的最大面积
```C++ class Solution { public: int n, m; vector> g; int dx[4] = {-1, 0, 1, 0}, dy[4] = {0, 1, 0, -1
LeetCode 401 二进制手表
```C++ class Solution { public: vector readBinaryWatch(int num) { vector res; char str[10]; for (int
下一页
个人成就
文章被阅读
2,485
掘力值
217
关注了
2
关注者
0
收藏集
1
关注标签
18
加入于
2022-03-27