因为题解较多,因此按照题号排序,每 100 道题汇总到一起。 你可以在侧边栏点击题号所处的范围,也可以通过 Ctrl + F 搜索题号/标题。 LeetCode 之 500-599 刷题笔记 500. Keyboard Row 键盘行 501. Find Mode in Binary Search Tree 二叉搜索树中的众数 503. Next Greater Element II 下一个更大元素 II 504. Base 7 七进制数 505. The Maze II 迷宫 II 506. Relative Ranks 相对名次 507. Perfect Number 完美数 508. Most Frequent Subtree Sum 出现次数最多的子树元素和 509. Fibonacci Number 斐波那契数 513. Find Bottom Left Tree Value 找树左下角的值 515. Find Largest Value in Each Tree Row 在每个树行中找最大值 516. Longest Palindromic Subsequence 最长回文子序列 518. Coin Change 2 零钱兑换 II 519. Random Flip Matrix 随机翻转矩阵 520. Detect Capital 检测大写字母 521. Longest Uncommon Subsequence I 最长特殊序列 Ⅰ 522. Longest Uncommon Subsequence II 最长特殊序列 II 525. Contiguous Array 连续数组 526. Beautiful Arrangement 优美的排列 528. Random Pick with Weight 按权重随机选择 529. Minesweeper 扫雷游戏 530. Minimum Absolute Difference in BST 二叉搜索树的最小绝对差 532. K-diff Pairs in an Array 数组中的 k-diff 数对 535. Encode and Decode TinyURL TinyURL 的加密与解密 536. Construct Binary Tree from String 从字符串生成二叉树 537. Complex Number Multiplication 复数乘法 538. Convert BST to Greater Tree 把二叉搜索树转换为累加树 539. Minimum Time Difference 最小时间差 540. Single Element in a Sorted Array 有序数组中的单一元素 541. Reverse String II 反转字符串 II 543. Diameter of Binary Tree 二叉树的直径 544. Output Contest Matches 输出比赛匹配对 547. Number of Provinces 省份数量 548. Split Array with Equal Sum 将数组分割成和相等的子数组 551. Student Attendance Record I 学生出勤记录 I 553. Optimal Division 最优除法 554. Brick Wall 砖墙 555. Split Concatenated Strings 分割连接字符串 556. Next Greater Element III 下一个更大元素 III 557. Reverse Words in a String III 反转字符串中的单词 III 558. Logical OR of Two Binary Grids Represented as Quad-Trees 四叉树交集 559. Maximum Depth of N-ary Tree N 叉树的最大深度 560. Subarray Sum Equals K 和为 K 的子数组 561. Array Partition 数组拆分 563. Binary Tree Tilt 二叉树的坡度 565. Array Nesting 数组嵌套 566. Reshape the Matrix 重塑矩阵 567. Permutation in String 字符串的排列 572. Subtree of Another Tree 另一棵树的子树 575. Distribute Candies 分糖果 576. Out of Boundary Paths 出界的路径数 581. Shortest Unsorted Continuous Subarray 最短无序连续子数组 583. Delete Operation for Two Strings 两个字符串的删除操作 589. N-ary Tree Preorder Traversal N 叉树的前序遍历 590. N-ary Tree Postorder Traversal N 叉树的后序遍历 592. Fraction Addition and Subtraction 分数加减运算 593. Valid Square 有效的正方形 594. Longest Harmonious Subsequence 最长和谐子序列 598. Range Addition II 范围求和 II 599. Minimum Index Sum of Two Lists 两个列表的最小索引总和