摘要: Count Largest Group You are given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return the number of groups tha 阅读全文
posted @ 2022-11-29 21:46 iyiluo 阅读(31) 评论(0) 推荐(0)
摘要: Reverse Only Letters Given a string s, reverse the string according to the following rules: All the characters that are not English letters remain in 阅读全文
posted @ 2022-11-29 21:46 iyiluo 阅读(18) 评论(0) 推荐(0)
摘要: Pascal's Triangle II Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. In Pascal's triangle, each number is t 阅读全文
posted @ 2022-11-29 21:46 iyiluo 阅读(28) 评论(0) 推荐(0)
摘要: Path Sum Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values 阅读全文
posted @ 2022-11-29 21:45 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要: Maximum Product of Three Numbers Given an integer array nums, find three numbers whose product is maximum and return the maximum product. Example 1: I 阅读全文
posted @ 2022-11-29 21:45 iyiluo 阅读(25) 评论(0) 推荐(0)
摘要: Check Distances Between Same Letters You are given a 0-indexed string s consisting of only lowercase English letters, where each letter in s appears e 阅读全文
posted @ 2022-11-29 21:45 iyiluo 阅读(19) 评论(0) 推荐(0)