12 2020 档案

【opencv基础-error】namedWindow和imshow部分内存泄漏问题原因分析
摘要:问题: 功能代码中部分代码中有显示,comment则可正常运行,否则运行不到一个小时就会崩溃,不知道是什么原因。系统代码其他部分也有显示,没有问题。 新版本会出现这个问题,老版本中没有出现这个问题,很奇怪。。。 code: extract_pts_dis(dst, measure_results); 阅读全文

posted @ 2020-12-29 17:00 鹅要长大 阅读(498) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1556. Thousand Separator
摘要:problem 1556. Thousand Separator solution#1: 使用to_string和迭代; code solution#2: 从前往后添加; code solution#3: 使用Insert; code 参考 1. leetcode_easy_string_1556. 阅读全文

posted @ 2020-12-22 21:05 鹅要长大 阅读(71) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1576. Replace All ?'s to Avoid Consecutive Repeating Characters
摘要:problem 1576. Replace All ?'s to Avoid Consecutive Repeating Characters solution#1: code: 注意,如何取得满足题意的替换字符;注意字符串边界; 参考 1. leetcode_easy_string_1576. R 阅读全文

posted @ 2020-12-22 21:00 鹅要长大 阅读(78) 评论(0) 推荐(0) 编辑

【error】Connecting to raw.githubusercontent.com failed: Connection refused. 解决办法
摘要:问题 ~/snpe-1.43.0.2307/demo/alexnet$ wget -c https://raw.githubusercontent.com/BVLC/caffe/master/models/bvlc_alexnet/deploy.prototxt --2020-12-21 10:45 阅读全文

posted @ 2020-12-21 22:31 鹅要长大 阅读(2134) 评论(0) 推荐(0) 编辑

【python-err】pip安装 matplotlib 时问题记录
摘要:problem 在使用pip3 install matplotlib==3.0.3时遇到如下问题 Collecting matplotlib==3.0.3 Downloading matplotlib-3.0.3.tar.gz (36.6 MB) |█████████████████████████ 阅读全文

posted @ 2020-12-21 20:59 鹅要长大 阅读(300) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
摘要:problem 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence solution#1: 使用string的特性和count函数; code solution#2: 通过空格split得到字符,然后判断; code 阅读全文

posted @ 2020-12-20 17:08 鹅要长大 阅读(104) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1624. Largest Substring Between Two Equal Characters
摘要:problem 1624. Largest Substring Between Two Equal Characters solution#1: code 参考 1. leetcode_easy_string_1624. Largest Substring Between Two Equal Cha 阅读全文

posted @ 2020-12-20 17:05 鹅要长大 阅读(76) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1544. Make The String Great
摘要:problem 1544. Make The String Great solution#1: code 参考 1. leetcode_easy_string_1544. Make The String Great; 完 阅读全文

posted @ 2020-12-20 17:04 鹅要长大 阅读(74) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1496. Path Crossing
摘要:problem 1496. Path Crossing solution#1: 使用set和pair; code 注意,set和pair的使用; 参考 1. leetcode_easy_string_1496. Path Crossing; 2. set的使用; 3. pair的使用; 完 阅读全文

posted @ 2020-12-20 17:04 鹅要长大 阅读(71) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1408. String Matching in an Array
摘要:problem 1408. String Matching in an Array solution#1: 使用set类型; code solution#2: 使用字符串; code 注意查找的关键; solution#3: 先排序后查找; code 参考 1. leetcode_easy_stri 阅读全文

posted @ 2020-12-20 17:03 鹅要长大 阅读(64) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1544. Make The String Great
摘要:problem 1544. Make The String Great solution#1:Brute-Force; code 注意1,如何判断两个字符是同一个字母的大小写呢?! 注意2,for循环的限制条件; 注意3,while循环的条件,或者外层循环结束的条件; solution#2: two 阅读全文

posted @ 2020-12-20 17:03 鹅要长大 阅读(91) 评论(0) 推荐(0) 编辑

【机器学习算法基础】常用聚类算法
摘要:参考 1. 常用聚类算法; 完 阅读全文

posted @ 2020-12-20 17:01 鹅要长大 阅读(147) 评论(0) 推荐(0) 编辑

【python-error】pip安装scipy和skimage的问题
摘要:problem Preparing wheel metadata ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /home/nvidia/.local/lib/python3.5/ 阅读全文

posted @ 2020-12-20 14:22 鹅要长大 阅读(753) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1592. Rearrange Spaces Between Words
摘要:problem 1592. Rearrange Spaces Between Words solution#1: code 注意,如何分离单词; 参考 1. leetcode_easy_string_1592. Rearrange Spaces Between Words; 完 阅读全文

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

【windows工具使用】如何关闭Clover的广告
摘要:前言 前段时间被小伙伴种草了资源管理工具Clover(四叶草),使用了一段时间,发现总是出现各种新闻推荐广告什么的,甚是辣眼睛,总想着如何关闭广告设置,故记录本文。 操作方法 方法1. 直接在设置中关闭; 其实,首先想到的就是更改设置,奈何宝宝之前怎么也没在见面上发现设置这个工具栏,可能是宝宝的眼睛 阅读全文

posted @ 2020-12-03 12:58 鹅要长大 阅读(5321) 评论(0) 推荐(0) 编辑

【leetcode_easy_stack】1598. Crawler Log Folder
摘要:problem 1598. Crawler Log Folder solution#1: 使用stack; code solution#2: code 参考 1. leetcode_easy_stack_1598. Crawler Log Folder; 完 阅读全文

posted @ 2020-12-02 07:52 鹅要长大 阅读(86) 评论(0) 推荐(0) 编辑

【leetcode_easy_stack】1441. Build an Array With Stack Operations
摘要:problem 1441. Build an Array With Stack Operations 题意: 这道题目重在理解题目意思; 有一个递增数组target,其中的元素是[1, n]之间的整数, 对于[1, n]之间且不大于target最大值的所有整数, 若target中不存在该数值,则先a 阅读全文

posted @ 2020-12-02 07:49 鹅要长大 阅读(41) 评论(0) 推荐(0) 编辑

【leetcode_easy_stack】1047. Remove All Adjacent Duplicates In String
摘要:problem 1047. Remove All Adjacent Duplicates In String solution#1: 使用stack; code: solution#2: 快慢指针; code solution#3: 数据类型string的特性; code 参考 1. leetcod 阅读全文

posted @ 2020-12-02 07:48 鹅要长大 阅读(41) 评论(0) 推荐(0) 编辑

【leetcode_easy_stack】1021. Remove Outermost Parentheses
摘要:problem 1021. Remove Outermost Parentheses solution#1: stack; code solution#2: code 参考 1. leetcode_easy_stack_1021. Remove Outermost Parentheses; 2. 【 阅读全文

posted @ 2020-12-02 07:47 鹅要长大 阅读(53) 评论(0) 推荐(0) 编辑

【git基础】git lfs的使用
摘要:前言 git add git checkout git使用过程 # git lfs installsudo apt-get install git-lfs# install git lfs configurationgit lfs install# usagegit clone URL git cl 阅读全文

posted @ 2020-12-02 07:46 鹅要长大 阅读(637) 评论(0) 推荐(0) 编辑

【leetcode_easy_sort】1640. Check Array Formation Through Concatenation
摘要:problem 1640. Check Array Formation Through Concatenation solution#1: code solution#2: code solution#3: code 参考 1. leetcode_essy_sort_1640. Check Arra 阅读全文

posted @ 2020-12-02 07:45 鹅要长大 阅读(46) 评论(0) 推荐(0) 编辑

【git基础error】git clone之后无代码只有.git
摘要:问题描述: 最近从git上下载DL模型和源码,看到模型只有几十k,就准备先clone模型文件再clone源码,没想到耽误了一些功夫,clone之后只有.git,但没有看到模型文件。 分析: 首先,一定要有权限,其次,一定要配置好git,特别是SSH KEY; 一般情况下,只需要clone就可以了,但 阅读全文

posted @ 2020-12-02 07:42 鹅要长大 阅读(4024) 评论(0) 推荐(0) 编辑

【git基础-err】Permission denied (publickey). fatal: Could not read from remote repository.
摘要:problem Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repos 阅读全文

posted @ 2020-12-02 07:36 鹅要长大 阅读(505) 评论(0) 推荐(0) 编辑

【leetcode_easy_BS】392. Is Subsequence
摘要:problem 392. Is Subsequence solution#1: two pointers,快慢指针; code solution#2: Follow Up中描述有很长的字符串,如何优化; 使用 uppper_bound() 来二分查找第一个大于 pre 的位置; code 参考 1. 阅读全文

posted @ 2020-12-02 07:31 鹅要长大 阅读(52) 评论(0) 推荐(0) 编辑

【leetcode_easy_string】1614. Maximum Nesting Depth of the Parentheses
摘要:problem 1614. Maximum Nesting Depth of the Parentheses 理解题意;题目描述的比较繁琐,重在理解核心思想; solution#1: code 参考 1. leetcode_easy_string_1614. Maximum Nesting Dept 阅读全文

posted @ 2020-12-02 07:17 鹅要长大 阅读(51) 评论(0) 推荐(0) 编辑

【c++基础】linux系统代码调试
摘要:前言 aarch64-linux-gnu-nm freespaceaarch64-linux-nm freespaceaarch64-linux-gnu-nm freespaceaarch64-linux-gnu-objdump -x -s -d freespace addr2line 0x7f92 阅读全文

posted @ 2020-12-02 07:13 鹅要长大 阅读(154) 评论(0) 推荐(0) 编辑

【linux基础】ps命令
摘要:前言 Linux ps (英文全拼:process status)命令用于显示当前进程的状态,类似于 windows 的任务管理器。 参考 1. 10个重要的Linux ps命令实战; 完 阅读全文

posted @ 2020-12-02 07:08 鹅要长大 阅读(154) 评论(0) 推荐(0) 编辑

【c++基础】出现内存泄漏的一段代码
摘要:前言 code float* lanemap = new float[output_h * output_w]; float* fsmap = new float[output_h * output_w]; cv::Mat showimg; std::vector<PointProp> border 阅读全文

posted @ 2020-12-02 07:02 鹅要长大 阅读(220) 评论(0) 推荐(0) 编辑

【leetcode_easy_greedy】1005. Maximize Sum Of Array After K Negations
摘要:problem 1005. Maximize Sum Of Array After K Negations 题意 solution#1: code solution#2: 先循环k次,每次把最小值前加负号,然后遍历求和; code solution#3: 翻转,应尽可能的翻转负数,同时翻转两次是可以 阅读全文

posted @ 2020-12-02 06:56 鹅要长大 阅读(51) 评论(0) 推荐(0) 编辑

【leetcode_easy_sort】1528. Shuffle String
摘要:problem 1528. Shuffle String solution#1: code 参考 1. leetcode_easy_sort_1528. Shuffle String; 完 阅读全文

posted @ 2020-12-02 06:55 鹅要长大 阅读(34) 评论(0) 推荐(0) 编辑

【leetcode_easy_greedy】1518. Water Bottles
摘要:problem 1518. Water Bottles 题意: solution#1:迭代; code solution#2: 迭代; code solution#3: 数学;oneline; code 参考 1. leetcode_easy_greedy_1518. Water Bottles; 阅读全文

posted @ 2020-12-02 06:52 鹅要长大 阅读(52) 评论(0) 推荐(0) 编辑

【leetcode_easy_greedy】1403. Minimum Subsequence in Non-Increasing Order
摘要:problem 1403. Minimum Subsequence in Non-Increasing Order 题意 重在理解题意,找出这样的最小子序列,肯定从数组中最大数开始一个一个提取,直到子序列的和大于剩余在原数组的元素之和。关键在于怎么提取数组中的最大数。可以排序,或者使用数值的数量。也 阅读全文

posted @ 2020-12-02 06:50 鹅要长大 阅读(57) 评论(0) 推荐(0) 编辑

【leetcode_easy_sort】1030. Matrix Cells in Distance Order
摘要:problem 1030. Matrix Cells in Distance Order solution#1: 排序; code solution#2: code 参考 1. leetcode_easy_sort_1030. Matrix Cells in Distance Order; 2. s 阅读全文

posted @ 2020-12-02 06:45 鹅要长大 阅读(44) 评论(0) 推荐(0) 编辑

【leetcode_easy_sort】1356. Sort Integers by The Number of 1 Bits
摘要:problem 1356. Sort Integers by The Number of 1 Bits solution#1: code: 注意,先按照数字1的数目排序,若相等,则按照整数的大小排序; 参考 1. leetcode_easy_sort_1356. Sort Integers by T 阅读全文

posted @ 2020-12-02 06:43 鹅要长大 阅读(58) 评论(0) 推荐(0) 编辑

导航

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