上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 53 下一页

2019年3月7日

摘要: problem 438. Find All Anagrams in a String solution1: class Solution { public: vector<int> findAnagrams(string s, string p) { if(s.empty()) return {}; 阅读全文
posted @ 2019-03-07 09:38 鹅要长大 阅读(213) 评论(0) 推荐(0) 编辑

2019年3月6日

摘要: problem 437. Path Sum III 参考 1. Leetcode_437. Path Sum III; 完 阅读全文
posted @ 2019-03-06 09:20 鹅要长大 阅读(108) 评论(0) 推荐(0) 编辑

2019年3月5日

摘要: problem 434. Number of Segments in a String solution1: 当前字符不为空且前一个字符为空,或者字符串首字符不为空,则为一个分割串。利用的是每一个分割串的前一个字符为空的特性,注意第一个分割串。 参考 1. Leetcode_434. Number 阅读全文
posted @ 2019-03-05 20:21 鹅要长大 阅读(132) 评论(0) 推荐(0) 编辑
摘要: problem 429. N-ary Tree Level Order Traversal solution1:Iteration 参考 1. Leetcode_429. N-ary Tree Level Order Traversal; 完 阅读全文
posted @ 2019-03-05 19:59 鹅要长大 阅读(158) 评论(0) 推荐(0) 编辑
摘要: problem 427. Construct Quad Tree 参考 1. Leetcode_427. Construct Quad Tree; 完 阅读全文
posted @ 2019-03-05 19:42 鹅要长大 阅读(145) 评论(0) 推荐(0) 编辑

2019年3月4日

摘要: problem 415. Add Strings solution: 参考 1. Leetcode_415. Add Strings; 完 阅读全文
posted @ 2019-03-04 19:08 鹅要长大 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 参考 1. 查看cudnn版本; 完 阅读全文
posted @ 2019-03-04 14:15 鹅要长大 阅读(1646) 评论(0) 推荐(0) 编辑

2019年3月3日

摘要: problem 414. Third Maximum Number solution 思路:用三个变量first, second, third来分别保存第一大、第二大和第三大的数,然后遍历数组。 注意: 1. 数据类型对应的最小值表示; 2. 赋值时需要判断是否为最小值; 参考 1. Leetcod 阅读全文
posted @ 2019-03-03 16:53 鹅要长大 阅读(203) 评论(0) 推荐(0) 编辑
摘要: problem 412. Fizz Buzz solution: 参考 1. Leetcode_412. Fizz Buzz; 完 阅读全文
posted @ 2019-03-03 16:51 鹅要长大 阅读(174) 评论(0) 推荐(0) 编辑
摘要: problem 409. Longest Palindrome solution1: 参考 1. Leetcode_409. Longest Palindrome; 完 阅读全文
posted @ 2019-03-03 16:43 鹅要长大 阅读(294) 评论(0) 推荐(0) 编辑

2019年3月2日

摘要: solution: 阅读全文
posted @ 2019-03-02 15:39 鹅要长大 阅读(222) 评论(0) 推荐(0) 编辑

2019年3月1日

摘要: 由于红外补光灯的爆闪,所以一般DMS会用global shutter的sensor,而不是rolling shutter的。 全局快门 (global shutter),其特点是sensor 上所有像素是在同一瞬间全部开始曝光的,因此sensor 采集的是物体在同一时间点的画面。 卷帘曝光的最显著特 阅读全文
posted @ 2019-03-01 16:01 鹅要长大 阅读(4563) 评论(0) 推荐(0) 编辑
摘要: problem Sum of Two Integers 不知道为什么一直出错; runtime error: left shift of negative value -2147483648 (solution.cpp) 参考 1. Leetcode_Sum of Two Integers; 完 不 阅读全文
posted @ 2019-03-01 11:47 鹅要长大 阅读(759) 评论(0) 推荐(0) 编辑
摘要: problem 367. Valid Perfect Square solution:二分法; solution2: 纯数学解法,利用到了这样一条性质,完全平方数是一系列奇数之和; 时间复杂度为O(sqrt(n)) 其他两种方法都出现超时的问题。 参考 1. Leetcode_367. Valid 阅读全文
posted @ 2019-03-01 10:16 鹅要长大 阅读(204) 评论(0) 推荐(0) 编辑

2019年2月28日

摘要: opencv窗口创建、大小调整等问题 图像最开始大小可能为1280*720或者其他大小的; 使用cv::resizeWindow函数之后,不同的参数感觉窗口大小没有多少改变,看不出来; 使用cv::setWindowProperty函数之后,发现linux下出错,可能适用于window吧; 最后发现 阅读全文
posted @ 2019-02-28 14:51 鹅要长大 阅读(7015) 评论(0) 推荐(0) 编辑
摘要: 参考 1. ARM平台NEON指令的编译和优化; 2. 交叉编译器 arm-linux-gnueabi 和 arm-linux-gnueabihf 的区别; 3. https://blog.csdn.net/bhj1119/article/details/56665567; https://blog 阅读全文
posted @ 2019-02-28 14:27 鹅要长大 阅读(2740) 评论(0) 推荐(0) 编辑
摘要: 简单来说,gcc与g++都是GNU(组织)的一个编译器。需要注意以下几点: (1)gcc与g++都可以编译c代码与c++代码。但是:后缀为.c的,gcc把它当做C程序,而g++当做是C++程序;后缀为.cpp的,两者都会认为是C++程序。 (2)编译阶段,g++会调用gcc,对于c++代码,两者是等 阅读全文
posted @ 2019-02-28 11:44 鹅要长大 阅读(1269) 评论(0) 推荐(0) 编辑

2019年2月25日

摘要: 参考 1. C++程序提高运行速度的方法; 2. 提高C++程序运行效率的10个简单方法; 3. C++编程中提高程序运行效率的方式(不断更新); 完 阅读全文
posted @ 2019-02-25 15:11 鹅要长大 阅读(1746) 评论(0) 推荐(0) 编辑
摘要: problem 350. Intersection of Two Arrays II 不是特别明白这道题的意思,例子不够说明问题; 是按顺序把相同的元素保存下来,还是排序,但是第二个例子没有重复.... 参考 1. Leetcode_350. Intersection of Two Arrays I 阅读全文
posted @ 2019-02-25 12:44 鹅要长大 阅读(139) 评论(0) 推荐(0) 编辑
摘要: problem 349. Intersection of Two Arrays 题意,是求解两个数组的交集。 solution 参考 1. Leetcode_349. Intersection of Two Arrays; 完 阅读全文
posted @ 2019-02-25 11:06 鹅要长大 阅读(105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 53 下一页

导航