会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
村雨sup
自己选的路,跪着也要走完 XD
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
14
15
16
17
18
19
20
21
22
···
42
下一页
2018年11月24日
pytorch人脸识别——自己制作数据集
摘要: 这是一篇面向新手的博文:因为本人也是新手,记录一下自己在做这个项目遇到的大大小小的坑。 按照下面的例子写就好了 运行model中的坑
阅读全文
posted @ 2018-11-24 23:29 村雨sup
阅读(6759)
评论(0)
推荐(0)
2018年11月9日
Leetcode 92
摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* r...
阅读全文
posted @ 2018-11-09 17:30 村雨sup
阅读(138)
评论(0)
推荐(0)
2018年11月8日
Leetcode 88
摘要: class Solution { public: void merge(vector& nums1, int m, vector& nums2, int n) { int k = nums1.size() - m; for(int i=0;i < k;i++){ nums1.pop_back(); } ...
阅读全文
posted @ 2018-11-08 22:43 村雨sup
阅读(116)
评论(0)
推荐(0)
Leetcode 86
摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* p...
阅读全文
posted @ 2018-11-08 17:06 村雨sup
阅读(146)
评论(0)
推荐(0)
2018年11月7日
Leetcode 83
摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* d...
阅读全文
posted @ 2018-11-07 23:40 村雨sup
阅读(119)
评论(0)
推荐(0)
2018年11月6日
Leetcode 82
摘要: 有个错误就是member access within null pointer of type 'struct ListNode' 其实就是判断了指针是否异常了,比如NULL->next之类。要记得用new给节点初始化,而指针不需要初始化
阅读全文
posted @ 2018-11-06 23:38 村雨sup
阅读(106)
评论(0)
推荐(0)
Leetcode 80
摘要: //美滋滋,水题刷起来class Solution { public: int removeDuplicates(vector& nums) { int cnt = 1; for(int i=1;i 2){ nums.erase(nums.begin()+i); i--; ...
阅读全文
posted @ 2018-11-06 16:11 村雨sup
阅读(87)
评论(0)
推荐(0)
2018年11月5日
Leetcode 89
摘要: 回溯写到自闭;不想就删了; 正解:(数学方法)
阅读全文
posted @ 2018-11-05 23:20 村雨sup
阅读(176)
评论(0)
推荐(0)
Leetcode 264
摘要: //这是个比较好的回溯模板class Solution { public: vector> combinationSum3(int k, int n) { vector> res; vector add; DFS(res,add,k,n,1); return res; } void DFS(vect...
阅读全文
posted @ 2018-11-05 12:47 村雨sup
阅读(103)
评论(0)
推荐(0)
2018年11月4日
Leetcode 784
摘要: //这代码可真丑陋,但我学到了两点1:char和string可以无缝互相转换2:char可以直接加减数字进行转换string不行 好方法:很简洁
阅读全文
posted @ 2018-11-04 21:36 村雨sup
阅读(105)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
42
下一页