摘要:method1: ' contents to be comment. ' method2 <<eof content to be comment. eof method3 <<! content to be comment. !
阅读全文
摘要:leetcode_easy_hashmap problem 350. Intersection of Two Arrays II solution #1: 使用sort; code solution #2: 哈希表; code 参考 1. leetcode_350. Intersection of
阅读全文
摘要:leetcode_easy_hashmap problem 1207. Unique Number of Occurrences solution #1: 多个map或者set; code solution #2: 排序判断; code 参考 1. leetcode_1207. Unique Num
阅读全文
摘要:leetcode_easy_array problem 1431. Kids With the Greatest Number of Candies 理解题意:添加一定数量的糖果,计算能够得到最多糖果的数目。 solution #1: code: 参考 1. leetcode_1431. Kids
阅读全文
摘要:图像分割的评价标准:像素准确率PA、平均像素准确率MPA、平均交并比MIoU、频率权重交并比FWIoU; 参考 1. 论文笔记 | 基于深度学习的图像语义分割技术概述; 2. 深度学习计算机视觉图像分割领域指标mIoU(平均交并比)计算代码与逐行解析; 3. github_compute_miou;
阅读全文
摘要:leetcode_medium_array problem 81. Search in Rotated Sorted Array II solution #1: 直接法; code solution #2: 分治法; code: 注意: 1) 寻找规律,分为两部分,确定有序且升序; 2) 重复元素的
阅读全文
摘要:leetcode_medium_array problem 90. Subsets II solution #1: 非递归; code 注意: 1) 先排序,后一步步添加子集; 2) 空集是任何集合的子集; 3) 重复元素的处理; solution #2: 递归; code 参考 1. leetco
阅读全文
摘要:leetcode_medium_array problem 289. Game of Life solution #1: code 注意: 1) 理解题意,将问题转换为数学可解问题; 2) 状态机的转换状态,以及最后的结果的关系; 3) 可以采用移位操作; /* 状态: 前一位表示下一代的状态,后一
阅读全文
摘要:leetcode_medium_array problem 287. Find the Duplicate Number solution #1: 二分法; code solution #2: 快慢指针; code: solution #3: 位操作; code: 参考 1. leetcode_28
阅读全文
摘要:leetcode_easy_array problem 1539. Kth Missing Positive Number solution #1: code 注意: 1) 数组的下标范围; 2) 超出数组范围的情况; solution #2: binary search; code 参考 1. l
阅读全文
摘要:leetcode_easy_array problem 1534. Count Good Triplets solution #1: Brute Force code solution #2: optimational Brute Force; code: solution #3: code 参考
阅读全文
摘要:leetcode_medium_array problem 238. Product of Array Except Self solution #1: 将乘积分为前后两部分相乘的结果; code solution #2: 空间优化; code: 参考 1. leetcode_238. Produc
阅读全文
摘要:前言 最近用到Qt,也用到opencv库,但是正常运行程序之后,出现错误,发现是opencv的环境配置问题。 问题 系统错误由于找不到opencv_world341d.dll/binlog.dll,无法继续执行代码。重新安装程序可能会解决此问题。 解决方法 1. 系统环境变量; 在系统环境变量中添加
阅读全文
摘要:参考 1. linux_usleep; 2. linux_sleep;
阅读全文
摘要:前言 1. opencv函数-轮廓拟合多边形函数-approxPolyDP; approxPolyDP 2. Ramer-Douglas-Peucker Algorithm; 参考 1. Ramer-Douglas-Peucker Algorithm; 2. opencv_approxPolyDP;
阅读全文
摘要:参考 1. 散点轮廓算法——Alpha Shapes; 2. Alpha Shapes; 完
阅读全文