上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 53 下一页

2020年10月22日

摘要: leetcode_medium_array problem 40. Combination Sum II solution #1: DFS; code: 注意: 1. 数组元素不能重复; 2. 在递归中也要注意数组元素不能重复; 参考 1. leetcode_40. Combination Sum 阅读全文
posted @ 2020-10-22 19:52 鹅要长大 阅读(51) 评论(0) 推荐(0) 编辑

2020年10月20日

摘要: leetcode_medium_array problem 55. Jump Game solution #1:动态规划; code: solution #2: 贪心算法; code: 注意: 1. 需要理解题意,能否到达最后,而不是必须到达最后位置; 2. 深入理解掌握动态规划算法; 3. 深入理 阅读全文
posted @ 2020-10-20 22:56 鹅要长大 阅读(83) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 48. Rotate Image solution #1: 循环更新; code solution #2:先转置再每行以中间列为轴翻转; code: solution #3: code 参考 1. leetcode_48. Rotate I 阅读全文
posted @ 2020-10-20 22:55 鹅要长大 阅读(65) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 59. Spiral Matrix II 参考 1. leetcode_59. Spiral Matrix II; 完 阅读全文
posted @ 2020-10-20 22:53 鹅要长大 阅读(70) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 56. Merge Intervals solution #1: 先排序再合并; code solution #2: code: 注意: 1. 二维数组如何进行排序; 2. 合并的规则; 参考 1. leetcode_56. Merge I 阅读全文
posted @ 2020-10-20 22:50 鹅要长大 阅读(96) 评论(0) 推荐(0) 编辑

2020年10月19日

摘要: leetcode_medium_array problem 64. Minimum Path Sum solution #1: 动态规划; code solution #2: 提前赋值; code: solution #3: 优化-使用一维数组存储; code solution #4: 优化-使用原 阅读全文
posted @ 2020-10-19 22:50 鹅要长大 阅读(87) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 62. Unique Paths solution #1: code 参考 1. leetcode_62. Unique Paths; 完 阅读全文
posted @ 2020-10-19 22:48 鹅要长大 阅读(82) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 63. Unique Paths II solution #1: 动态规划二维数组; code solution #2: 动态规划一维数组; code: 参考 1. leetcode_63. Unique Paths II; 完 阅读全文
posted @ 2020-10-19 22:44 鹅要长大 阅读(86) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 73. Set Matrix Zeroes solution #1: 空间复杂度O(m*n); code solution #2: 空间复杂度O(m+n); 解题思路:记录含有零值的行和列,然后进行数值变换; code solution # 阅读全文
posted @ 2020-10-19 22:42 鹅要长大 阅读(54) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 74. Search a 2D Matrix 理解题意:在递增数组中查询是否存在某个数值; solution #1: 双重循环; code solution #2: 解题思路:每行判断target数值是否在其中,然后再在所在行查询; cod 阅读全文
posted @ 2020-10-19 22:40 鹅要长大 阅读(80) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 240. Search a 2D Matrix II 理解题意:总结数组元素的规律,任意矩形区域,左上最小,右下最大。 solution #1:以左下作为参考点,向上数值减小,向右数值增大; 解题思路: 和目标数相比较,如果目标数大,就往右 阅读全文
posted @ 2020-10-19 22:38 鹅要长大 阅读(56) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 75. Sort Colors 理解题意:本质上还是排序题。 solution #1: code 参考 1. leetcode_75. Sort Colors; 完 阅读全文
posted @ 2020-10-19 22:36 鹅要长大 阅读(87) 评论(0) 推荐(0) 编辑
摘要: leetcode_medium_array problem 78. Subsets solution #1: code solution #2: 递归; 没看明白这种方法; code 参考 1. leetcode_78. Subsets; 完 阅读全文
posted @ 2020-10-19 22:29 鹅要长大 阅读(79) 评论(0) 推荐(0) 编辑
摘要: code // show contour points. cv::Scalar color(rand()&255, rand()&255, rand()&255); // cv::Mat showimg1 = cv::Mat::zeros(cv::Size(out_w_, out_h_), CV_8 阅读全文
posted @ 2020-10-19 22:26 鹅要长大 阅读(972) 评论(0) 推荐(0) 编辑
摘要: problem 1566. Detect Pattern of Length M Repeated K or More Times solution#1: brute search; hint: Use a three-layer loop to check all possible pattern 阅读全文
posted @ 2020-10-19 22:10 鹅要长大 阅读(123) 评论(0) 推荐(0) 编辑
摘要: problem 1572. Matrix Diagonal Sum hint There will be overlap of elements in the primary and secondary diagonals if and only if the length of the matri 阅读全文
posted @ 2020-10-19 22:06 鹅要长大 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 前言 注意,CANoe软件network的CAN通道和硬件是CAN通道是一一对应的。 下午使用CANoe回灌数据的时候,trace没有数据流动,但是offline模式正常,后发现是软硬件连接不正常。 注意,有时候数据没有反应,可能是硬件连接失效,也就是可能CANoe的驱动虽在,但是软硬件没有正常连接 阅读全文
posted @ 2020-10-19 22:05 鹅要长大 阅读(16135) 评论(0) 推荐(0) 编辑

2020年9月17日

摘要: method1: ' contents to be comment. ' method2 <<eof content to be comment. eof method3 <<! content to be comment. ! 阅读全文
posted @ 2020-09-17 11:33 鹅要长大 阅读(349) 评论(0) 推荐(0) 编辑

2020年9月15日

摘要: leetcode_easy_hashmap problem 350. Intersection of Two Arrays II solution #1: 使用sort; code solution #2: 哈希表; code 参考 1. leetcode_350. Intersection of 阅读全文
posted @ 2020-09-15 22:26 鹅要长大 阅读(108) 评论(0) 推荐(0) 编辑
摘要: leetcode_easy_hashmap problem 1207. Unique Number of Occurrences solution #1: 多个map或者set; code solution #2: 排序判断; code 参考 1. leetcode_1207. Unique Num 阅读全文
posted @ 2020-09-15 22:23 鹅要长大 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 53 下一页

导航