摘要:problem 888. Fair Candy Swap solution: 参考 1. Leetcode_easy_888. Fair Candy Swap; 2. discuss; 3. grandyang; 完
阅读全文
摘要:problem 893. Groups of Special-Equivalent Strings 题意: 感觉参考代码也是有点问题的。。。 参考 1. Leetcode_easy_893. Groups of Special-Equivalent Strings; 2. grandyang; 3.
阅读全文
摘要:problem 896. Monotonic Array solution1: solution2: 参考 1. Leetcode_easy_896. Monotonic Array; 2. discuss1; 3. discuss2; 完
阅读全文
摘要:problem 897. Increasing Order Search Tree 参考 1. Leetcode_easy_897. Increasing Order Search Tree; 完
阅读全文
摘要:problem 905. Sort Array By Parity solution1: solution2: 参考 1. Leetcode_easy_905. Sort Array By Parity; 2. discuss; 完
阅读全文
摘要:problem 914. X of a Kind in a Deck of Cards 题意:每个数字对应的数目可以均分为多组含有K个相同数目该数字的数组。 思路:使用 map 结构记录数组中每个元素出现的次数,该题转化为求次数的最大公约数,若所有次数的最大公约数大于或者等于 2,返回 true,否
阅读全文
摘要:problem 908. Smallest Range I solution: 参考 1. Leetcode_easy_908. Smallest Range I; 2. discuss; 完
阅读全文
摘要:problem 917. Reverse Only Letters solution: 参考 1. Leetcode_easy_917. Reverse Only Letters; 完
阅读全文
摘要:problem 922. Sort Array By Parity II solution1: 参考 1. Leetcode_easy_922. Sort Array By Parity II; 2. discuss; 完
阅读全文
摘要:problem 925. Long Pressed Name solution1: 参考 1. Leetcode_easy_925. Long Pressed Name; 2. discuss; 3. cnblogs; 完
阅读全文
摘要:problem 872. Leaf-Similar Trees 参考 1. Leetcode_easy_872. Leaf-Similar Trees; 完
阅读全文
摘要:problem 874. Walking Robot Simulation solution1: 思路:1)如何表示移动的方向以及移动的位置坐标; 2)障碍物坐标如何检查;3)求解的是最大距离; 参考 1. Leetcode_easy_874. Walking Robot Simulation; 2
阅读全文
摘要:problem 1128. Number of Equivalent Domino Pairs solution1: 不明白为什么每个元素都要加上count; 参考 1. Leetcode_easy_1128. Number of Equivalent Domino Pairs; 2. Discus
阅读全文
摘要:problem 868. Binary Gap solution1: solution2: 参考1. Leetcode_easy_868. Binary Gap; 2. Grandyang; 完
阅读全文
摘要:problem 867. Transpose Matrix solution: 参考 1. Leetcode_easy_867. Transpose Matrix; 2. Grandyang; 完
阅读全文
摘要:problem 860. Lemonade Change solution 参考 1. Leetcode_easy_860. Lemonade Change; 2. Discuss; 3. Grandyang; 完
阅读全文
摘要:problem 859. Buddy Strings solution: 参考 1. Leetcode_easy_859. Buddy Strings; 2. grandyang; 3. Discuss; 完
阅读全文
摘要:problem 852. Peak Index in a Mountain Array solution1: solution2: solution3: 参考 1. Leetcode_easy_852. Peak Index in a Mountain Array; 2. grandyang; 3.
阅读全文
摘要:problem 849. Maximize Distance to Closest Person solution1: 参考 1. Leetcode_easy_849. Maximize Distance to Closest Person; 2. grandyang; 完
阅读全文
摘要:problem 844. Backspace String Compare solution1: solution2: 参考1. Leetcode_easy_844. Backspace String Compare; 2. grandyang; 完
阅读全文