摘要:problem 1122. Relative Sort Array solution1: code 哈希表 solution2: code: 思路 解题思路: 首先解读题意。arr2的元素都是独一无二的,并且都所属于arr1。arr1中可能包含重复元素。目标是将arr1中的元素重新排序,排序规则是1
阅读全文
摘要:problem 1021. Remove Outermost Parentheses 参考 1. Leetcode_easy_1021. Remove Outermost Parentheses; 完
阅读全文
摘要:problem 1022. Sum of Root To Leaf Binary Numbers 参考 1. Leetcode_easy_1022. Sum of Root To Leaf Binary Numbers; 完
阅读全文
摘要:problem 1025. Divisor Game 参考 1. Leetcode_easy_1025. Divisor Game; 完
阅读全文
摘要:problem 1029. Two City Scheduling 参考 1. Leetcode_easy_1029. Two City Scheduling; 完
阅读全文
摘要:problem 1030. Matrix Cells in Distance Order 参考 1. Leetcode_easy_1030. Matrix Cells in Distance Order; 完
阅读全文
摘要:problem 1033. Moving Stones Until Consecutive 参考 1. Leetcode_easy_1033. Moving Stones Until Consecutive; 完
阅读全文
摘要:problem 1037. Valid Boomerang 参考 1. Leetcode_easy_1037. Valid Boomerang; 完
阅读全文
摘要:problem 1042. Flower Planting With No Adjacent 参考 1. Leetcode_easy_1042. Flower Planting With No Adjacent; 完
阅读全文
摘要:problem 1046. Last Stone Weight 参考 1. Leetcode_easy_1046. Last Stone Weight; 完
阅读全文
摘要:problem 1047. Remove All Adjacent Duplicates In String 参考 1. Leetcode_easy_1047. Remove All Adjacent Duplicates In String; 完
阅读全文
摘要:problem 1051. Height Checker solution 参考 1. Leetcode_easy_1051. Height Checker; 完
阅读全文
摘要:problem 1071. Greatest Common Divisor of Strings solution 参考 1. Leetcode_easy_1071. Greatest Common Divisor of Strings; 完
阅读全文
摘要:problem 1154. Day of the Year solution 参考 1. Leetcode_easy_1154. Day of the Year; 完
阅读全文
摘要:problem 1170. Compare Strings by Frequency of the Smallest Character solution1: 双重循环,超时; solution2: 哈希表; 参考 1. Leetcode_easy_1170. Compare Strings by
阅读全文
摘要:problem 1160. Find Words That Can Be Formed by Characters solution 参考 1. Leetcode_easy_1160. Find Words That Can Be Formed by Characters; 完
阅读全文
摘要:problem 997. Find the Town Judge solution: 参考 1. Leetcode_easy_997. Find the Town Judge; 完
阅读全文
摘要:problem 994. Rotting Oranges 参考 1. Leetcode_easy_994. Rotting Oranges; 完
阅读全文
摘要:problem 993. Cousins in Binary Tree 参考 1. Leetcode_easy_993. Cousins in Binary Tree; 完
阅读全文
摘要:problem 989. Add to Array-Form of Integer 参考 1. Leetcode_easy_989. Add to Array-Form of Integer; 完
阅读全文