上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 64 下一页
摘要: Given an array of strings nums containing n unique binary strings each of length n, return a binary string of length n that does not appear in nums. I 阅读全文
posted @ 2021-08-23 23:37 CNoodle 阅读(372) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, split the binary tree into two subtrees by removing one edge such that the product of the sums of the subtrees is max 阅读全文
posted @ 2021-08-20 11:01 CNoodle 阅读(267) 评论(0) 推荐(0)
摘要: Given an array nums, you are allowed to choose one element of nums and change it by any value in one move. Return the minimum difference between the l 阅读全文
posted @ 2021-08-20 00:59 CNoodle 阅读(468) 评论(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 1: Input: n = 13 Output: 阅读全文
posted @ 2021-08-19 23:16 CNoodle 阅读(65) 评论(0) 推荐(0)
摘要: You are given a 0-indexed string s of even length n. The string consists of exactly n / 2 opening brackets '[' and n / 2 closing brackets ']'. A strin 阅读全文
posted @ 2021-08-18 23:41 CNoodle 阅读(470) 评论(0) 推荐(0)
摘要: Given an array of positive integers arr (not necessarily distinct), return the lexicographically largest permutation that is smaller than arr, that ca 阅读全文
posted @ 2021-08-16 22:55 CNoodle 阅读(74) 评论(0) 推荐(0)
摘要: You are given a 0-indexed integer array piles, where piles[i] represents the number of stones in the ith pile, and an integer k. You should apply the 阅读全文
posted @ 2021-08-16 02:44 CNoodle 阅读(348) 评论(0) 推荐(0)
摘要: Given a string s and an array of strings words, determine whether s is a prefix string of words. A string s is a prefix string of words if s can be ma 阅读全文
posted @ 2021-08-15 06:23 CNoodle 阅读(174) 评论(0) 推荐(0)
摘要: A super ugly number is a positive integer whose prime factors are in the array primes. Given an integer n and an array of integers primes, return the  阅读全文
posted @ 2021-08-09 23:37 CNoodle 阅读(290) 评论(0) 推荐(0)
摘要: You are playing a game involving a circular array of non-zero integers nums. Each nums[i] denotes the number of indices forward/backward you must move 阅读全文
posted @ 2021-08-08 15:18 CNoodle 阅读(138) 评论(0) 推荐(0)
摘要: The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. Given n, return the value of Tn. Exa 阅读全文
posted @ 2021-08-08 12:57 CNoodle 阅读(144) 评论(0) 推荐(0)
摘要: We start at some node in a directed graph, and every turn, we walk along a directed edge of the graph. If we reach a terminal node (that is, it has no 阅读全文
posted @ 2021-08-05 12:27 CNoodle 阅读(128) 评论(0) 推荐(0)
摘要: Given n points on a 2D plane, find if there is such a line parallel to y-axis that reflect the given points symmetrically, in other words, answer whet 阅读全文
posted @ 2021-08-04 23:11 CNoodle 阅读(143) 评论(0) 推荐(0)
摘要: You are given a string num, which represents a large integer. You are also given a 0-indexed integer array change of length 10 that maps each digit 0- 阅读全文
posted @ 2021-08-02 13:17 CNoodle 阅读(133) 评论(0) 推荐(0)
摘要: You are given a string s consisting of lowercase English letters, and an integer k. First, convert s into an integer by replacing each letter with its 阅读全文
posted @ 2021-07-30 23:00 CNoodle 阅读(229) 评论(0) 推荐(0)
摘要: You are given a string time in the form of hh:mm, where some of the digits in the string are hidden (represented by ?). The valid times are those incl 阅读全文
posted @ 2021-07-25 00:47 CNoodle 阅读(123) 评论(0) 推荐(0)
摘要: You are given an n x n binary matrix grid. You are allowed to change at most one 0 to be 1. Return the size of the largest island in grid after applyi 阅读全文
posted @ 2021-07-18 02:11 CNoodle 阅读(263) 评论(0) 推荐(0)
摘要: The beauty of a string is the difference in frequencies between the most frequent and least frequent characters. For example, the beauty of "abaacc" i 阅读全文
posted @ 2021-07-17 11:36 CNoodle 阅读(163) 评论(0) 推荐(0)
摘要: order and str are strings composed of lowercase letters. In order, no letter occurs more than once. order was sorted in some custom order previously. 阅读全文
posted @ 2021-07-15 00:58 CNoodle 阅读(164) 评论(0) 推荐(0)
摘要: You are given two positive integer arrays nums1 and nums2, both of length n. The absolute sum difference of arrays nums1 and nums2 is defined as the s 阅读全文
posted @ 2021-07-15 00:20 CNoodle 阅读(372) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 64 下一页