随笔分类 -  leetcode

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页

【Leetcode_easy】888. Fair Candy Swap
摘要:problem 888. Fair Candy Swap solution: 参考 1. Leetcode_easy_888. Fair Candy Swap; 2. discuss; 3. grandyang; 完 阅读全文

posted @ 2019-07-26 19:32 鹅要长大 阅读(183) 评论(0) 推荐(0)

【Leetcode_easy】893. Groups of Special-Equivalent Strings
摘要:problem 893. Groups of Special-Equivalent Strings 题意: 感觉参考代码也是有点问题的。。。 参考 1. Leetcode_easy_893. Groups of Special-Equivalent Strings; 2. grandyang; 3. 阅读全文

posted @ 2019-07-26 19:30 鹅要长大 阅读(126) 评论(0) 推荐(0)

【Leetcode_easy】896. Monotonic Array
摘要:problem 896. Monotonic Array solution1: solution2: 参考 1. Leetcode_easy_896. Monotonic Array; 2. discuss1; 3. discuss2; 完 阅读全文

posted @ 2019-07-26 19:26 鹅要长大 阅读(171) 评论(0) 推荐(0)

【Leetcode_easy】897. Increasing Order Search Tree
摘要:problem 897. Increasing Order Search Tree 参考 1. Leetcode_easy_897. Increasing Order Search Tree; 完 阅读全文

posted @ 2019-07-26 19:25 鹅要长大 阅读(113) 评论(0) 推荐(0)

【Leetcode_easy】905. Sort Array By Parity
摘要:problem 905. Sort Array By Parity solution1: solution2: 参考 1. Leetcode_easy_905. Sort Array By Parity; 2. discuss; 完 阅读全文

posted @ 2019-07-26 19:24 鹅要长大 阅读(160) 评论(0) 推荐(0)

【Leetcode_easy】914. X of a Kind in a Deck of Cards
摘要:problem 914. X of a Kind in a Deck of Cards 题意:每个数字对应的数目可以均分为多组含有K个相同数目该数字的数组。 思路:使用 map 结构记录数组中每个元素出现的次数,该题转化为求次数的最大公约数,若所有次数的最大公约数大于或者等于 2,返回 true,否 阅读全文

posted @ 2019-07-26 19:23 鹅要长大 阅读(106) 评论(0) 推荐(0)

【Leetcode_easy】908. Smallest Range I
摘要:problem 908. Smallest Range I solution: 参考 1. Leetcode_easy_908. Smallest Range I; 2. discuss; 完 阅读全文

posted @ 2019-07-26 19:23 鹅要长大 阅读(94) 评论(0) 推荐(0)

【Leetcode_easy】917. Reverse Only Letters
摘要:problem 917. Reverse Only Letters solution: 参考 1. Leetcode_easy_917. Reverse Only Letters; 完 阅读全文

posted @ 2019-07-26 19:22 鹅要长大 阅读(96) 评论(0) 推荐(0)

【Leetcode_easy】922. Sort Array By Parity II
摘要: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 鹅要长大 阅读(83) 评论(0) 推荐(0)

【Leetcode_easy】925. Long Pressed Name
摘要:problem 925. Long Pressed Name solution1: 参考 1. Leetcode_easy_925. Long Pressed Name; 2. discuss; 3. cnblogs; 完 阅读全文

posted @ 2019-07-26 18:34 鹅要长大 阅读(125) 评论(0) 推荐(0)

【Leetcode_easy】872. Leaf-Similar Trees
摘要:problem 872. Leaf-Similar Trees 参考 1. Leetcode_easy_872. Leaf-Similar Trees; 完 阅读全文

posted @ 2019-07-26 18:33 鹅要长大 阅读(121) 评论(0) 推荐(0)

【Leetcode_easy】874. Walking Robot Simulation
摘要: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)

【Leetcode_easy】1128. Number of Equivalent Domino Pairs
摘要: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 鹅要长大 阅读(147) 评论(0) 推荐(0)

【Leetcode_easy】868. Binary Gap
摘要:problem 868. Binary Gap solution1: solution2: 参考1. Leetcode_easy_868. Binary Gap; 2. Grandyang; 完 阅读全文

posted @ 2019-07-19 18:17 鹅要长大 阅读(238) 评论(0) 推荐(0)

【Leetcode_easy】867. Transpose Matrix
摘要:problem 867. Transpose Matrix solution: 参考 1. Leetcode_easy_867. Transpose Matrix; 2. Grandyang; 完 阅读全文

posted @ 2019-07-19 18:16 鹅要长大 阅读(144) 评论(0) 推荐(0)

【Leetcode_easy】860. Lemonade Change
摘要:problem 860. Lemonade Change solution 参考 1. Leetcode_easy_860. Lemonade Change; 2. Discuss; 3. Grandyang; 完 阅读全文

posted @ 2019-07-19 18:15 鹅要长大 阅读(142) 评论(0) 推荐(0)

【Leetcode_easy】859. Buddy Strings
摘要:problem 859. Buddy Strings solution: 参考 1. Leetcode_easy_859. Buddy Strings; 2. grandyang; 3. Discuss; 完 阅读全文

posted @ 2019-07-19 18:14 鹅要长大 阅读(140) 评论(0) 推荐(0)

【Leetcode_easy】852. Peak Index in a Mountain Array
摘要: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)

【Leetcode_easy】849. Maximize Distance to Closest Person
摘要: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)

【Leetcode_easy】844. Backspace String Compare
摘要: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)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页

导航