上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 54 下一页

2019年6月20日

摘要: problem 598. Range Addition II 题意: 第一感觉就是最小的行和列的乘积即是最后结果。 参考 1. Leetcode_easy_598. Range Addition II; 2. Grandyang; 完 阅读全文
posted @ 2019-06-20 16:24 鹅要长大 阅读(136) 评论(0) 推荐(0)
摘要: problem 594. Longest Harmonious Subsequence 最长和谐子序列 题意: 可以对数组进行排序,那么实际上只要找出来相差为1的两个数的总共出现个数就是一个和谐子序列的长度了. solution1: 使用hashmap 用 HashMap 来做,先遍历一遍,建立每个 阅读全文
posted @ 2019-06-20 15:50 鹅要长大 阅读(140) 评论(0) 推荐(0)
摘要: problem 590. N-ary Tree Postorder Traversal 参考 1. Leetcode_easy_590. N-ary Tree Postorder Traversal; 完 阅读全文
posted @ 2019-06-20 15:49 鹅要长大 阅读(134) 评论(0) 推荐(0)

2019年6月19日

摘要: problem 589. N-ary Tree Preorder Traversal N叉树的前序遍历 首先复习一下树的4种遍历,前序、中序、后序和层序。其中,前序、中序和后序是根据根节点的顺序进行区分和命名的。 层序遍历,即是按树的层从上到下、从左到右进行遍历。 参考 1. Leetcode_ea 阅读全文
posted @ 2019-06-19 10:07 鹅要长大 阅读(132) 评论(0) 推荐(0)

2019年6月18日

摘要: method: 参考 1. Ubuntu下的终端多标签切换快捷键; 完 阅读全文
posted @ 2019-06-18 17:39 鹅要长大 阅读(2792) 评论(0) 推荐(1)

2019年6月13日

摘要: re1. github_lane_detection; end 阅读全文
posted @ 2019-06-13 10:14 鹅要长大 阅读(460) 评论(0) 推荐(0)

2019年6月12日

摘要: re 1. struct timespec 和 struct timeval; end 阅读全文
posted @ 2019-06-12 14:40 鹅要长大 阅读(1582) 评论(0) 推荐(0)
摘要: OpenCV中image.copyTo()有两种形式: 1、image.copyTo(imageROI),作用是把image的内容粘贴到imageROI; 2、image.copyTo(imageROI,mask),作用是把mask和image重叠以后把mask中像素值为0(black)的点对应的i 阅读全文
posted @ 2019-06-12 14:22 鹅要长大 阅读(3522) 评论(0) 推荐(0)

2019年6月11日

摘要: re 1. C++关键字之friend; end 希望大家能把自己的所学和他人一起分享,不要去鄙视别人索取时的贪婪,因为最应该被鄙视的是不肯分享时的吝啬。 GOOD 阅读全文
posted @ 2019-06-11 17:43 鹅要长大 阅读(282) 评论(0) 推荐(0)

2019年6月5日

摘要: 问题描述 打开d2l-zh目录,使用jupyter notebook打开文件运行,import mxnet 出现无法导入mxnet模块的问题, 但是命令行运行是可以导入mxnet模块的。 原因: 激活环境是能够运行代码的前提。 解决方法: 在d2l-zh目录运行conda activate gluo 阅读全文
posted @ 2019-06-05 13:38 鹅要长大 阅读(1833) 评论(0) 推荐(0)

2019年6月4日

摘要: opencv-split Divides a multi-channel array into several single-channel arrays. code 参考 1. opencv_split; 完 阅读全文
posted @ 2019-06-04 14:58 鹅要长大 阅读(166) 评论(0) 推荐(0)
摘要: problem 581. Shortest Unsorted Continuous Subarray 题意:感觉题意理解的不是非常明白。 solution1: 使用一个辅助数组,新建一个跟原数组一模一样的数组,然后排序。从数组起始位置开始,两个数组相互比较,当对应位置数字不同的时候停止,同理再从末尾 阅读全文
posted @ 2019-06-04 14:40 鹅要长大 阅读(190) 评论(0) 推荐(0)
摘要: problem 577. Employee Bonus 参考 1. Leetcode_easy_$_577. Employee Bonus; 2. https://www.cnblogs.com/lightwindy/p/9698931.html; 完 阅读全文
posted @ 2019-06-04 14:37 鹅要长大 阅读(467) 评论(0) 推荐(0)

2019年6月3日

摘要: problem 575. Distribute Candies 理解题意:主要是计算candies的种类数。 如果大于candies数目的一半,则返回一半的值,否则,返回candies的种类数。 solution1: 注意掌握set的用法; solution2: re 1. Leetcode_eas 阅读全文
posted @ 2019-06-03 22:30 鹅要长大 阅读(120) 评论(0) 推荐(0)
摘要: problem 572. Subtree of Another Tree re 1. Leetcode_easy_572. Subtree of Another Tree; end 阅读全文
posted @ 2019-06-03 22:29 鹅要长大 阅读(194) 评论(0) 推荐(0)
摘要: problem 566. Reshape the Matrix solution solution2 re 1. Leetcode_easy_566. Reshape the Matrix; 2. Grandyang; end 阅读全文
posted @ 2019-06-03 22:07 鹅要长大 阅读(133) 评论(0) 推荐(0)
摘要: problem 563. Binary Tree Tilt re 1. Leetcode_easy_563. Binary Tree Tilt; end 阅读全文
posted @ 2019-06-03 22:06 鹅要长大 阅读(163) 评论(0) 推荐(0)
摘要: problem 561. Array Partition I solution re 1. Leetcode_easy_561. Array Partition I; 2. Grandyang; end 阅读全文
posted @ 2019-06-03 21:59 鹅要长大 阅读(88) 评论(0) 推荐(0)
摘要: problem 559. Maximum Depth of N-ary Tree re 1. Leetcode_easy_559. Maximum Depth of N-ary Tree; end 阅读全文
posted @ 2019-06-03 21:57 鹅要长大 阅读(164) 评论(0) 推荐(0)

2019年5月31日

摘要: problem 558. Quad Tree Intersection re 1. Leetcode_easy_558. Quad Tree Intersection; 2. Grandyang; end 阅读全文
posted @ 2019-05-31 13:43 鹅要长大 阅读(159) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 54 下一页

导航