12 2018 档案

【leetcode】231-power-of-two
摘要:problem 231-power-of-two solution1 class Solution { public: bool isPowerOfTwo(int n) { if(n==0) return false; while(n%2==0) { n /= 2; } return n==1; } 阅读全文

posted @ 2018-12-29 14:46 鹅要长大 阅读(140) 评论(0) 推荐(0) 编辑

C++中vector容器的常用操作方法实例总结
摘要:C++中vector容器的常用操作方法实例总结 参考 1. C++中vector容器的常用操作方法实例总结; 完 阅读全文

posted @ 2018-12-29 10:46 鹅要长大 阅读(354) 评论(0) 推荐(0) 编辑

【leetcode】226-invert-binary-tree
摘要:problem 226-invert-binary-tree code solution1-DFS /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode 阅读全文

posted @ 2018-12-28 16:58 鹅要长大 阅读(158) 评论(0) 推荐(0) 编辑

Procrustes Analysis普氏分析法
摘要:re 1. Procrustes Analysis普氏分析法; 2. BigCowPeking; end 阅读全文

posted @ 2018-12-27 13:33 鹅要长大 阅读(1687) 评论(0) 推荐(0) 编辑

[leetcode]225. Implement Stack using Queues
摘要:problem 225. Implement Stack using Queues code class MyStack { public: std::queue<int> myqueue; /** Initialize your data structure here. */ MyStack() 阅读全文

posted @ 2018-12-27 12:46 鹅要长大 阅读(105) 评论(0) 推荐(0) 编辑

SDM(Supervised Descent Method and its Applications to Face Alignment )
摘要:sdm re 1. CSDN_newbee; 2. SDM_pdf; 3. github; 4. author_homepage; 5. github-patrikhuber; 6. materials; 7. matlab_code; 8. Derive; 9. 106points; end 阅读全文

posted @ 2018-12-27 10:30 鹅要长大 阅读(756) 评论(0) 推荐(0) 编辑

[机器学习]特征归一化
摘要:re: 1. 机器学习之特征归一化(normalization); 2. 详解特征归一化; 3. zhihu; 4. 最大最小标准化与Z-score标准化; End 阅读全文

posted @ 2018-12-26 16:05 鹅要长大 阅读(240) 评论(0) 推荐(0) 编辑

【图像基础】图像不变性特征HU矩和Zernike矩
摘要:参考 1. 图像不变性特征; 2. matlab实现; 3. HU矩和Zernike矩; 完 阅读全文

posted @ 2018-12-26 13:29 鹅要长大 阅读(449) 评论(0) 推荐(0) 编辑

【转】吴恩达的视频课程做成了文字版 ~~~
摘要:ML DL 参考 1.CSDN大神; 完 阅读全文

posted @ 2018-12-25 17:46 鹅要长大 阅读(512) 评论(0) 推荐(0) 编辑

[error]OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file modules/imgproc/src/resize.cpp, line 3289
摘要:error 阅读全文

posted @ 2018-12-25 16:42 鹅要长大 阅读(2927) 评论(0) 推荐(0) 编辑

【linux基础】如何确定系统使用的Eigen库的版本
摘要:path 文件 Macros.h 即表示系统Eigen版本是3.2.92; 参考 1.CSDN博客; 完 阅读全文

posted @ 2018-12-24 09:23 鹅要长大 阅读(4603) 评论(0) 推荐(1) 编辑

计算机视觉会议及团队
摘要:前言 本文主要记录一些重要的计算机视觉会议和团队。 会议 1. CVPR ECCV ICCV FG 团队 1. https://ibug.doc.ic.ac.uk/resources/facial-point-annotations/ 2. 阅读全文

posted @ 2018-12-21 17:09 鹅要长大 阅读(222) 评论(0) 推荐(0) 编辑

219. Contains Duplicate II
摘要:problem 219. Contains Duplicate II solution1 class Solution { public: bool containsNearbyDuplicate(vector<int>& nums, int k) { for(int i=0; i<nums.siz 阅读全文

posted @ 2018-12-14 17:01 鹅要长大 阅读(115) 评论(0) 推荐(0) 编辑

217. Contains Duplicate
摘要:problem 217. Contains Duplicate solution1:暴力破解 class Solution { public: bool containsDuplicate(vector<int>& nums) { for(int i=0; i<nums.size(); i++) { 阅读全文

posted @ 2018-12-14 11:07 鹅要长大 阅读(130) 评论(0) 推荐(0) 编辑

206. Reverse Linked List
摘要:problem 206. Reverse Linked List code Iteration /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(i 阅读全文

posted @ 2018-12-14 10:33 鹅要长大 阅读(142) 评论(0) 推荐(0) 编辑

gdb debug
摘要:http://www.cnblogs.com/life2refuel/p/5396538.html 阅读全文

posted @ 2018-12-13 16:55 鹅要长大 阅读(120) 评论(0) 推荐(0) 编辑

【leetcode】205-Isomorphic Strings
摘要:problem 205-Isomorphic Strings code 需要注意的 参考 1. Leetcode_Isomorphic Strings; 完 阅读全文

posted @ 2018-12-11 20:19 鹅要长大 阅读(147) 评论(0) 推荐(0) 编辑

204. Count Primes
摘要:problem 204. Count Primes 参考 1. CSDN大神; 2. CSDN; 3. Leetcode_CountPrimes; 完 2. CSDN; 3. Leetcode_CountPrimes; 完 阅读全文

posted @ 2018-12-10 22:45 鹅要长大 阅读(145) 评论(0) 推荐(0) 编辑

203. Remove Linked List Elements
摘要:203. Remove Linked List Elements code /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : va 阅读全文

posted @ 2018-12-09 19:59 鹅要长大 阅读(139) 评论(0) 推荐(0) 编辑

202. Happy Number
摘要:problem 202. Happy Number code 1. Leetcode_Happy Number; 2. GrandYang_cnblogs; 阅读全文

posted @ 2018-12-09 19:43 鹅要长大 阅读(154) 评论(0) 推荐(0) 编辑

198. House Robber
摘要:problem 198. House Robber solution1: code solution2: code class Solution { public: int rob(vector<int>& nums) { if(nums.size()==0) return 0; if(nums.s 阅读全文

posted @ 2018-12-09 13:42 鹅要长大 阅读(152) 评论(0) 推荐(0) 编辑

191. Number of 1 Bits
摘要:problem 191. Number of 1 Bits code solution2 依据二进制数据的性质,使用模板进行实现。 1. Leetcode_Number of 1 Bits; 阅读全文

posted @ 2018-12-09 13:30 鹅要长大 阅读(111) 评论(0) 推荐(0) 编辑

190. Reverse Bits
摘要:problem 190. Reverse Bits solution1: class Solution { public: uint32_t reverseBits(uint32_t n) { uint32_t res = 0; for(int i=0; i<32; i++) { res = res 阅读全文

posted @ 2018-12-08 19:58 鹅要长大 阅读(127) 评论(0) 推荐(0) 编辑

189. Rotate Array
摘要:problem 189. Rotate Array solution1: 暴力破解法(Time Limit Exceeded) class Solution { public: void rotate(vector<int>& nums, int k) { int tmp, pre; for(int 阅读全文

posted @ 2018-12-08 19:56 鹅要长大 阅读(103) 评论(0) 推荐(0) 编辑

172. Factorial Trailing Zeroes
摘要:problem 172. Factorial Trailing Zeroes 172. Factorial Trailing Zeroes code class Solution { public: int trailingZeroes(int n) { int ans = 0; while(n) 阅读全文

posted @ 2018-12-08 19:03 鹅要长大 阅读(108) 评论(0) 推荐(0) 编辑

171. Excel Sheet Column Number
摘要:problem 171. Excel Sheet Column Number sum( (s[i]-'A'+1)*pow(26, i) ) code 1. Leetcode_Excel Sheet Column Number; 阅读全文

posted @ 2018-12-08 19:01 鹅要长大 阅读(161) 评论(0) 推荐(0) 编辑

Gtk-WARNING **: cannot open display: :0.0
摘要:Gtk-WARNING **: cannot open display: :0.0 https://blog.csdn.net/Rong_Toa/article/details/80365932 阅读全文

posted @ 2018-12-07 17:53 鹅要长大 阅读(5285) 评论(0) 推荐(0) 编辑

169. Majority Element
摘要:169. Majority Element HashMap code class Solution { public: int majorityElement(vector<int>& nums) { unordered_map<int, int> counts; for(int i=0; i<nu 阅读全文

posted @ 2018-12-07 13:45 鹅要长大 阅读(120) 评论(0) 推荐(0) 编辑

168. Excel Sheet Column Title
摘要:168. Excel Sheet Column Title code https://leetcode.com/problems/excel-sheet-column-title/description/ 阅读全文

posted @ 2018-12-07 09:35 鹅要长大 阅读(142) 评论(0) 推荐(0) 编辑

167. Two Sum II - Input array is sorted
摘要:167. Two Sum II - Input array is sorted code class Solution { public: vector<int> twoSum(vector<int>& numbers, int target) { vector<int> res; int left 阅读全文

posted @ 2018-12-07 09:03 鹅要长大 阅读(151) 评论(0) 推荐(0) 编辑

160. Intersection of Two Linked Lists
摘要:160. Intersection of Two Linked Lists code /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) 阅读全文

posted @ 2018-12-05 18:04 鹅要长大 阅读(98) 评论(0) 推荐(0) 编辑

155. Min Stack
摘要:155. Min Stack code class MinStack { private: stack<int> s1; stack<int> s2; public: /** initialize your data structure here. */ MinStack() { } void pu 阅读全文

posted @ 2018-12-05 12:40 鹅要长大 阅读(119) 评论(0) 推荐(0) 编辑

TensorRT caffemodel serialize序列化
摘要:1、TensorRT的需要的文件 需要的基本文件(不是必须的) 1>网络结构文件(deploy.prototxt) 2>训练的权重模型(net.caffemodel) TensorRT 2.0 EA版中的sampleMNISTAPI和TensorRT 1.0中的sampleMNISTGIE 几乎没有 阅读全文

posted @ 2018-12-05 11:00 鹅要长大 阅读(1565) 评论(0) 推荐(0) 编辑

141. Linked List Cycle
摘要:problem 141. Linked List Cycle code 这道题是快慢指针的经典应用。只需要设两个指针,一个每次走一步的慢指针和一个每次走两步的快指针,如果链表里有环的话,两个指针最终肯定会相遇。实在是太巧妙了,要是我肯定想不出来。代码如下: 1.Leetcode_Linked Lis 阅读全文

posted @ 2018-12-04 10:26 鹅要长大 阅读(104) 评论(0) 推荐(0) 编辑

异或运算的性质及应用
摘要:运算法则 参考 1. http://www.cnblogs.com/danh/archive/2010/12/24/1915810.html 2. https://blog.csdn.net/gtkknd/article/details/52798337 3. https://blog.csdn.n 阅读全文

posted @ 2018-12-04 10:19 鹅要长大 阅读(243) 评论(0) 推荐(0) 编辑

136. Single Number
摘要:136. Single Number https://leetcode.com/problems/single-number/description/ 阅读全文

posted @ 2018-12-03 22:50 鹅要长大 阅读(119) 评论(0) 推荐(0) 编辑

【leeetcode】125-Valid Palindrome
摘要:problem 125. Valid Palindrome 参考 1. Leetcode_Valid Palindrome; 完 阅读全文

posted @ 2018-12-03 20:15 鹅要长大 阅读(158) 评论(0) 推荐(0) 编辑

c++函数参数类型-引用、指针、值
摘要:c++函数参数类型-引用、指针、值 https://www.cnblogs.com/lidabo/archive/2012/05/30/2525837.html 阅读全文

posted @ 2018-12-03 16:21 鹅要长大 阅读(449) 评论(0) 推荐(0) 编辑

【linux基础】linux远程登录SSH
摘要:可以用ssh命令行方式登录。对方需要开启ssh服务。 SSH2是目前广泛使用的ssh版本,SSH协议是TCP协议,其占用的端口号是 22; 绝大多数Linux版本默认使用的SSH是openssh,通过 ssh -V 命令可以查看ssh的信息; SSH分为服务器端和客户端,对于服务器端,SSH是默认开 阅读全文

posted @ 2018-12-01 19:26 鹅要长大 阅读(427) 评论(0) 推荐(0) 编辑

【leetcode】122-Best Time to Buy and Sell Stock II
摘要:problem 122. Best Time to Buy and Sell Stock II 这道题由于可以无限次买入和卖出。我们都知道炒股想挣钱当然是低价买入高价抛出,那么这里我们只需要从第二天开始,如果当前价格比之前价格高,则把差值加入利润中,因为我们可以昨天买入,今日卖出,若明日价更高的话, 阅读全文

posted @ 2018-12-01 19:10 鹅要长大 阅读(169) 评论(0) 推荐(0) 编辑

【leetcode】121-Best Time to Buy and Sell Stock
摘要:problem 121. Best Time to Buy and Sell Stock code class Solution { public: int maxProfit(vector<int>& prices) { int res = 0; for(int i=0; i<prices.siz 阅读全文

posted @ 2018-12-01 18:41 鹅要长大 阅读(181) 评论(0) 推荐(0) 编辑

【leetcode】119-Pascal's Triangle II
摘要:problem 119. Pascal's Triangle II code class Solution { public: vector<int> getRow(int rowIndex) { vector<int> res(rowIndex+1, 1); if(rowIndex<2) retu 阅读全文

posted @ 2018-12-01 13:00 鹅要长大 阅读(194) 评论(0) 推荐(0) 编辑

118. Pascal's Triangle
摘要:problem 118. Pascal's Triangle code 注意数组的下标,以及数组的size。根据题意,其实可以确定数组的大小。 参考 1. leetcode_Pascal's Triangle; 完 阅读全文

posted @ 2018-12-01 12:58 鹅要长大 阅读(93) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

点击右上角即可分享
微信分享提示