上一页 1 2 3 4 5 6 7 8 9 10 ··· 37 下一页
摘要: Start from integer 1, remove any integer that contains 9 such as 9, 19, 29... So now, you will have a new integer sequence: 1, 2, 3, 4, 5, 6, 7, 8, 10 阅读全文
posted @ 2020-08-16 06:52 Review->Improve 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Given a string s. An awesome substring is a non-empty substring of s such that we can make any number of swaps in order to make it palindrome. Return 阅读全文
posted @ 2020-08-15 01:52 Review->Improve 阅读(381) 评论(0) 推荐(0) 编辑
摘要: There are G people in a gang, and a list of various crimes they could commit. The i-th crime generates a profit[i] and requires group[i] gang members 阅读全文
posted @ 2020-08-12 10:32 Review->Improve 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. Example: Input: 13 Output: 6 Exp 阅读全文
posted @ 2020-08-11 00:21 Review->Improve 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Given a m x n binary matrix mat. In one step, you can choose one cell and flip it and all the four neighbours of it if they exist (Flip is changing 1 阅读全文
posted @ 2020-07-28 10:17 Review->Improve 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: Given an array of positive integers target and an array initial of same size with all zeros. Return the minimum number of operations to form a target  阅读全文
posted @ 2020-07-27 12:26 Review->Improve 阅读(816) 评论(0) 推荐(1) 编辑
摘要: Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s 阅读全文
posted @ 2020-07-27 11:46 Review->Improve 阅读(983) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer N, how many ways can we write it as a sum of consecutive positive integers? Example 1: Input: 5 Output: 2 Explanation: 5 = 5 阅读全文
posted @ 2020-07-25 07:56 Review->Improve 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justif 阅读全文
posted @ 2020-07-25 00:00 Review->Improve 阅读(781) 评论(0) 推荐(0) 编辑
摘要: Given a string s of lowercase letters, you need to find the maximum number of non-empty substrings of s that meet the following conditions: The substr 阅读全文
posted @ 2020-07-22 07:09 Review->Improve 阅读(1000) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 37 下一页