上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 54 下一页

2019年7月26日

摘要: problem 914. X of a Kind in a Deck of Cards 题意:每个数字对应的数目可以均分为多组含有K个相同数目该数字的数组。 思路:使用 map 结构记录数组中每个元素出现的次数,该题转化为求次数的最大公约数,若所有次数的最大公约数大于或者等于 2,返回 true,否 阅读全文
posted @ 2019-07-26 19:23 鹅要长大 阅读(107) 评论(0) 推荐(0)
摘要: problem 908. Smallest Range I solution: 参考 1. Leetcode_easy_908. Smallest Range I; 2. discuss; 完 阅读全文
posted @ 2019-07-26 19:23 鹅要长大 阅读(94) 评论(0) 推荐(0)
摘要: problem 917. Reverse Only Letters solution: 参考 1. Leetcode_easy_917. Reverse Only Letters; 完 阅读全文
posted @ 2019-07-26 19:22 鹅要长大 阅读(99) 评论(0) 推荐(0)
摘要: problem 922. Sort Array By Parity II solution1: 参考 1. Leetcode_easy_922. Sort Array By Parity II; 2. discuss; 完 阅读全文
posted @ 2019-07-26 19:21 鹅要长大 阅读(86) 评论(0) 推荐(0)
摘要: problem 925. Long Pressed Name solution1: 参考 1. Leetcode_easy_925. Long Pressed Name; 2. discuss; 3. cnblogs; 完 阅读全文
posted @ 2019-07-26 18:34 鹅要长大 阅读(126) 评论(0) 推荐(0)
摘要: problem 872. Leaf-Similar Trees 参考 1. Leetcode_easy_872. Leaf-Similar Trees; 完 阅读全文
posted @ 2019-07-26 18:33 鹅要长大 阅读(121) 评论(0) 推荐(0)
摘要: problem 874. Walking Robot Simulation solution1: 思路:1)如何表示移动的方向以及移动的位置坐标; 2)障碍物坐标如何检查;3)求解的是最大距离; 参考 1. Leetcode_easy_874. Walking Robot Simulation; 2 阅读全文
posted @ 2019-07-26 18:32 鹅要长大 阅读(177) 评论(0) 推荐(0)

2019年7月23日

摘要: problem 1128. Number of Equivalent Domino Pairs solution1: 不明白为什么每个元素都要加上count; 参考 1. Leetcode_easy_1128. Number of Equivalent Domino Pairs; 2. Discus 阅读全文
posted @ 2019-07-23 17:50 鹅要长大 阅读(148) 评论(0) 推荐(0)

2019年7月22日

摘要: 工程编译遇到的问题: 如下图所示: 解决方法: step1: 主要是opencv的相关配置还是有问题的,首先按照软件说明文档中opencv部分的使用说明进行操作,还需要按照软件最新给出的opencv第三方库的readme文档配置opencv工程的属性,即可; step2: 代码中调用摄像头的语句: 阅读全文
posted @ 2019-07-22 13:36 鹅要长大 阅读(568) 评论(0) 推荐(0)

2019年7月19日

摘要: problem 868. Binary Gap solution1: solution2: 参考1. Leetcode_easy_868. Binary Gap; 2. Grandyang; 完 阅读全文
posted @ 2019-07-19 18:17 鹅要长大 阅读(239) 评论(0) 推荐(0)
摘要: problem 867. Transpose Matrix solution: 参考 1. Leetcode_easy_867. Transpose Matrix; 2. Grandyang; 完 阅读全文
posted @ 2019-07-19 18:16 鹅要长大 阅读(145) 评论(0) 推荐(0)
摘要: problem 860. Lemonade Change solution 参考 1. Leetcode_easy_860. Lemonade Change; 2. Discuss; 3. Grandyang; 完 阅读全文
posted @ 2019-07-19 18:15 鹅要长大 阅读(142) 评论(0) 推荐(0)
摘要: problem 859. Buddy Strings solution: 参考 1. Leetcode_easy_859. Buddy Strings; 2. grandyang; 3. Discuss; 完 阅读全文
posted @ 2019-07-19 18:14 鹅要长大 阅读(140) 评论(0) 推荐(0)
摘要: problem 852. Peak Index in a Mountain Array solution1: solution2: solution3: 参考 1. Leetcode_easy_852. Peak Index in a Mountain Array; 2. grandyang; 3. 阅读全文
posted @ 2019-07-19 18:13 鹅要长大 阅读(144) 评论(0) 推荐(0)
摘要: problem 849. Maximize Distance to Closest Person solution1: 参考 1. Leetcode_easy_849. Maximize Distance to Closest Person; 2. grandyang; 完 阅读全文
posted @ 2019-07-19 18:00 鹅要长大 阅读(153) 评论(0) 推荐(0)
摘要: problem 844. Backspace String Compare solution1: solution2: 参考1. Leetcode_easy_844. Backspace String Compare; 2. grandyang; 完 阅读全文
posted @ 2019-07-19 17:59 鹅要长大 阅读(229) 评论(0) 推荐(0)
摘要: problem 840. Magic Squares In Grid solution: 参考 1. Leetcode_easy_840. Magic Squares In Grid; 2. grandyang; 完 阅读全文
posted @ 2019-07-19 17:58 鹅要长大 阅读(260) 评论(0) 推荐(0)
摘要: problem 836. Rectangle Overlap solution: 参考 1. Leetcode_easy_836. Rectangle Overlap; 2. grandyang; 完 阅读全文
posted @ 2019-07-19 17:57 鹅要长大 阅读(163) 评论(0) 推荐(0)
摘要: problem 830. Positions of Large Groups solution1: 参考 1. Leetcode_easy_830. Positions of Large Groups; 2. grandyang; 完 阅读全文
posted @ 2019-07-19 17:56 鹅要长大 阅读(193) 评论(0) 推荐(0)
摘要: problem 832. Flipping an Image solution1: 参考1. Leetcode_easy_832. Flipping an Image; 2. grandyang; 完 阅读全文
posted @ 2019-07-19 17:56 鹅要长大 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 54 下一页

导航