02 2019 档案

【opencv】opencv窗口创建、大小调整等问题
摘要:opencv窗口创建、大小调整等问题 图像最开始大小可能为1280*720或者其他大小的; 使用cv::resizeWindow函数之后,不同的参数感觉窗口大小没有多少改变,看不出来; 使用cv::setWindowProperty函数之后,发现linux下出错,可能适用于window吧; 最后发现 阅读全文

posted @ 2019-02-28 14:51 鹅要长大 阅读(7072) 评论(0) 推荐(0) 编辑

【linux】ARM板子开启浮点和neon加速
摘要:参考 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 鹅要长大 阅读(2824) 评论(0) 推荐(0) 编辑

【编程基础】编译器 cc、gcc、g++、CC 的区别
摘要:简单来说,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 鹅要长大 阅读(1416) 评论(0) 推荐(0) 编辑

【c++基础】c++提升速度的方法总结
摘要:参考 1. C++程序提高运行速度的方法; 2. 提高C++程序运行效率的10个简单方法; 3. C++编程中提高程序运行效率的方式(不断更新); 完 阅读全文

posted @ 2019-02-25 15:11 鹅要长大 阅读(1769) 评论(0) 推荐(0) 编辑

【leetcode】350. Intersection of Two Arrays II
摘要:problem 350. Intersection of Two Arrays II 不是特别明白这道题的意思,例子不够说明问题; 是按顺序把相同的元素保存下来,还是排序,但是第二个例子没有重复.... 参考 1. Leetcode_350. Intersection of Two Arrays I 阅读全文

posted @ 2019-02-25 12:44 鹅要长大 阅读(141) 评论(0) 推荐(0) 编辑

【leetcode】349. Intersection of Two Arrays
摘要:problem 349. Intersection of Two Arrays 题意,是求解两个数组的交集。 solution 参考 1. Leetcode_349. Intersection of Two Arrays; 完 阅读全文

posted @ 2019-02-25 11:06 鹅要长大 阅读(106) 评论(0) 推荐(0) 编辑

【c++基础】static修饰的函数作用与意义
摘要:static修饰的函数作用与意义 参考 1.static修饰的函数作用与意义; 完 阅读全文

posted @ 2019-02-25 10:21 鹅要长大 阅读(7193) 评论(1) 推荐(2) 编辑

【leetcode】345. Reverse Vowels of a String
摘要:problem 345. Reverse Vowels of a String class Solution { public: string reverseVowels(string s) { int left = 0, right =s.size()-1; char chl, chr; whil 阅读全文

posted @ 2019-02-25 09:13 鹅要长大 阅读(152) 评论(0) 推荐(0) 编辑

【leetcode】344. Reverse String
摘要:problem 344. Reverse String solution: solution2: 参考 1. Leetcode_344_Reverse String; 完 阅读全文

posted @ 2019-02-22 17:56 鹅要长大 阅读(196) 评论(0) 推荐(0) 编辑

[leetcode]342. Power of Four
摘要:problem 342. Power of Four solution1:loop; solution ref: 1. Leetcode_342_Power of Four; 2. GrandYang; end 阅读全文

posted @ 2019-02-22 12:30 鹅要长大 阅读(185) 评论(0) 推荐(0) 编辑

[leetcode]326. Power of Three
摘要:problem 326. Power of Three solution: Iteration ref 1. Leetcode_326_Power of Three; 2. GrangYang; 3. A summary of `all` solutions; end 阅读全文

posted @ 2019-02-22 11:26 鹅要长大 阅读(146) 评论(0) 推荐(0) 编辑

303. Range Sum Query - Immutable
摘要:problem 303. Range Sum Query - Immutable solution 注意,累加和的下标,因为累加和的第一项是初始化值0. 参考 1. Leetcode_303_Range Sum Query - Immutable; 完 阅读全文

posted @ 2019-02-22 09:39 鹅要长大 阅读(158) 评论(0) 推荐(0) 编辑

【Leetcode】292. Nim Game
摘要:problem 292. Nim Game solution 来generalize一下这道题,当可以拿1~n个石子时,那么个数为(n+1)的整数倍时一定会输,我们试着证明一下这个结论,若当前共有m*(n+1)个石子,那么: 当m=1时,即剩n+1个的时候,肯定会输,因为不管你取1~n中的任何一个数 阅读全文

posted @ 2019-02-22 09:28 鹅要长大 阅读(152) 评论(0) 推荐(0) 编辑

【c++】函数默认参数
摘要:c++ Prime Plus sixth edition page274 参考 1. http://www.cnblogs.com/graphics/archive/2010/07/15/1778291.html 2. https://blog.csdn.net/vlily/article/deta 阅读全文

posted @ 2019-02-21 17:15 鹅要长大 阅读(200) 评论(0) 推荐(0) 编辑

[err]default argument given for parameter 3 of '***'
摘要:err yuanyin: 既可以在类的声明中,也可以在函数定义中声明缺省参数,但不能既在类声明中又在函数定义中同时声明缺省参数。 因此,将定义或声明中的任一个缺省参数删除即可。 ref 1. 编译错误:error: default argument given for parameter 1 of 阅读全文

posted @ 2019-02-21 16:42 鹅要长大 阅读(679) 评论(0) 推荐(0) 编辑

[err]multiple definition of `***'
摘要:err CMakeFiles/dsm.dir/src/main_stateEstimation.cpp.o: In function `align_mean(cv::Mat, cv::Rect_<int>, float, float, float, float)': main_stateEstima 阅读全文

posted @ 2019-02-21 15:38 鹅要长大 阅读(334) 评论(0) 推荐(0) 编辑

【leetcode】290. Word Pattern
摘要:problem 290. Word Pattern 多理解理解题意!!! 不过博主还是不理解,应该比较的是单词的首字母和pattern的顺序是否一致。疑惑!知道的可以分享一下下哈~ 之前理解有误,应该是pattern中的每个字符和某个单词的一一映射关系。 参考 1. Leetcode_290_Wor 阅读全文

posted @ 2019-02-20 09:18 鹅要长大 阅读(173) 评论(0) 推荐(0) 编辑

【leetcode】283. Move Zeroes
摘要:problem 283. Move Zeroes solution 先把非零元素移到数组前面,其余补零即可。 参考 1. Leetcode_283_Move Zeroes; 完 阅读全文

posted @ 2019-02-19 20:33 鹅要长大 阅读(139) 评论(0) 推荐(0) 编辑

【leetcode】278. First Bad Version
摘要:problem 278. First Bad Version solution1:遍历; solution2:二分法; 参考 1. Leetcode_278_First Bad Version; 完 阅读全文

posted @ 2019-02-19 20:26 鹅要长大 阅读(181) 评论(0) 推荐(0) 编辑

【leetcode】268. Missing Number
摘要:problem 268. Missing Number solution1:等差数列求和公式 根据题意,(0, 1, 2,...,n),共有(n+1)个数,丢失了一个数之后,剩余的数组成的数组,求解丢失的数据。 等差数列求和减去数组累加和得到的结果即为所求数据。 solution2:异或操作。 so 阅读全文

posted @ 2019-02-19 20:03 鹅要长大 阅读(135) 评论(0) 推荐(0) 编辑

【leetcode】263. Ugly Number
摘要:problem 263. Ugly Number 丑数 所谓丑数就是其质数因子只能是2,3,5。那么最直接的办法就是不停的除以这些质数,如果剩余的数字是1的话就是丑数了。 solution1 solution2 参考 1. Leetcode_263_Ugly Number; 完 阅读全文

posted @ 2019-02-19 19:33 鹅要长大 阅读(158) 评论(0) 推荐(0) 编辑

【err】VIDEOIO ERROR: V4L: index 0 is not correct!Unable to connect to camera
摘要:前言 新到手一块板子,程序编译成功之后,运行出现错误,不能连接到摄像头。 问题 查询系统摄像头接口 说明系统有摄像头接口,使用linux命令也能够查找到摄像头设备; 原因 系统有摄像头设备和接口,但是程序中调用的摄像头接口index与设备实际的连接接口不一致,故出现以上问题。 注意不同板子可能使用的 阅读全文

posted @ 2019-02-19 15:03 鹅要长大 阅读(3571) 评论(0) 推荐(0) 编辑

【leetcode】258. Add Digits
摘要:problem 258. Add Digits solution1: solution2: Digital_root 参考 1. Leetcode_258. Add Digits; 2. Digital_root; 完 阅读全文

posted @ 2019-02-19 12:37 鹅要长大 阅读(136) 评论(0) 推荐(0) 编辑

【leetcode】257. Binary Tree Paths
摘要:problem 257. Binary Tree Paths solution1:recursive递归方法。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * Tr 阅读全文

posted @ 2019-02-18 19:47 鹅要长大 阅读(152) 评论(0) 推荐(0) 编辑

【leetcode】242. Valid Anagram
摘要:problem 242. Valid Anagram 首先,要先弄清楚什么是anagram,anagram是指由颠倒字母顺序组成的单词。 解决方法一种是排序,一种是哈希表。 solution: 参考 1. Leetcode_242_Valid Anagram; 完 阅读全文

posted @ 2019-02-18 19:44 鹅要长大 阅读(232) 评论(0) 推荐(0) 编辑

【leetcode】237. Delete Node in a Linked List
摘要:problem 237. Delete Node in a Linked List 这道题是删除链表的一个节点,和通常情况不同的是,没有给出链表的起点,只给了一个要删的节点。一般来说删除一个节点的方法是要有其前一个节点的位置,然后将其前一个节点的next连向要删节点的下一个,然后delete掉要删的 阅读全文

posted @ 2019-02-18 17:03 鹅要长大 阅读(166) 评论(0) 推荐(0) 编辑

【linux基础】如何查看Linux系统是64位还是32位
摘要:如何查看Linux系统是64位还是32位 参考 1. 如何查看Linux系统是64位还是32位; 2. 如何判断linux系统是32位还是64位; 阅读全文

posted @ 2019-02-18 14:40 鹅要长大 阅读(1110) 评论(0) 推荐(0) 编辑

【leetcode】235-Lowest Common Ancestor of a Binary Search Tree
摘要:problem 235. Lowest Common Ancestor of a Binary Search Tree 二叉搜索树的性质 百科解释 solution1:递归方法: 由于二叉搜索树的特点是左<根<右,所以根节点的值一直都是中间值,大于左子树的所有节点值,小于右子树的所有节点值,那么我们 阅读全文

posted @ 2019-02-18 13:05 鹅要长大 阅读(204) 评论(0) 推荐(0) 编辑

【linux基础】CMake如何生成动态链接库文件
摘要:CMakeLists.txt 运行完成之后可以在库文件的输出目录看到libfilename.so文件。 参考 1. linux下CMake生成动态链接库,g++包含生成动态链接库; 2. CMake方式编译生成so库; 3. cmake同时生成动态库与静态库的方法; 4. Ubuntu环境下将MTC 阅读全文

posted @ 2019-02-18 09:32 鹅要长大 阅读(5587) 评论(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

统计

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