上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 64 下一页
摘要: You are given two string arrays words1 and words2. A string b is a subset of string a if every letter in b occurs in a including multiplicity. For exa 阅读全文
posted @ 2022-07-30 12:25 CNoodle 阅读(152) 评论(0) 推荐(0)
摘要: A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possibl 阅读全文
posted @ 2022-07-26 01:18 CNoodle 阅读(54) 评论(0) 推荐(0)
摘要: Design a data structure that simulates an in-memory file system. Implement the FileSystem class: FileSystem() Initializes the object of the system. Li 阅读全文
posted @ 2022-07-24 07:16 CNoodle 阅读(277) 评论(0) 推荐(0)
摘要: A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pairs of neighboring stops where distance[i] is the di 阅读全文
posted @ 2022-07-24 04:57 CNoodle 阅读(52) 评论(0) 推荐(0)
摘要: Given a string s and an array of strings words, return the number of words[i] that is a subsequence of s. A subsequence of a string is a new string ge 阅读全文
posted @ 2022-07-20 13:28 CNoodle 阅读(105) 评论(0) 推荐(0)
摘要: You are given an array of strings products and a string searchWord. Design a system that suggests at most three product names from products after each 阅读全文
posted @ 2022-07-13 04:25 CNoodle 阅读(82) 评论(0) 推荐(0)
摘要: You are given two string arrays username and website and an integer array timestamp. All the given arrays are of the same length and the tuple [userna 阅读全文
posted @ 2022-07-12 11:26 CNoodle 阅读(335) 评论(0) 推荐(0)
摘要: Let's define a function countUniqueChars(s) that returns the number of unique characters on s. For example, calling countUniqueChars(s) if s = "LEETCO 阅读全文
posted @ 2022-07-12 06:49 CNoodle 阅读(119) 评论(0) 推荐(0)
摘要: You are given an integer array nums. The range of a subarray of nums is the difference between the largest and smallest element in the subarray. Retur 阅读全文
posted @ 2022-07-12 05:23 CNoodle 阅读(372) 评论(0) 推荐(0)
摘要: Given an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. Since the answer may be large, return 阅读全文
posted @ 2022-07-10 15:26 CNoodle 阅读(312) 评论(0) 推荐(0)
摘要: Given two nodes of a binary tree p and q, return their lowest common ancestor (LCA). Each node will have a reference to its parent node. The definitio 阅读全文
posted @ 2022-07-08 07:04 CNoodle 阅读(432) 评论(0) 推荐(0)
摘要: A string can be abbreviated by replacing any number of non-adjacent, non-empty substrings with their lengths. The lengths should not have leading zero 阅读全文
posted @ 2022-07-07 13:21 CNoodle 阅读(357) 评论(0) 推荐(0)
摘要: You are implementing a program to use as your calendar. We can add a new event if adding the event will not cause a double booking. A double booking h 阅读全文
posted @ 2022-07-05 02:35 CNoodle 阅读(125) 评论(0) 推荐(0)
摘要: A car travels from a starting position to a destination which is target miles east of the starting position. There are gas stations along the way. The 阅读全文
posted @ 2022-07-02 03:52 CNoodle 阅读(115) 评论(0) 推荐(0)
摘要: A parentheses string is a non-empty string consisting only of '(' and ')'. It is valid if any of the following conditions is true: It is (). It can be 阅读全文
posted @ 2022-07-02 02:06 CNoodle 阅读(255) 评论(0) 推荐(0)
摘要: In a linked list of size n, where n is even, the ith node (0-indexed) of the linked list is known as the twin of the (n-1-i)th node, if 0 <= i <= (n / 阅读全文
posted @ 2022-06-30 10:32 CNoodle 阅读(372) 评论(0) 推荐(0)
摘要: Given a string s, find the longest palindromic subsequence's length in s. A subsequence is a sequence that can be derived from another sequence by del 阅读全文
posted @ 2022-06-29 11:21 CNoodle 阅读(96) 评论(0) 推荐(0)
摘要: Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in 阅读全文
posted @ 2022-06-28 14:29 CNoodle 阅读(201) 评论(0) 推荐(0)
摘要: Given a string S with only lowercase characters. Return the number of substrings that contains at least k distinct characters. Example 1: Input: S = " 阅读全文
posted @ 2022-06-25 08:47 CNoodle 阅读(246) 评论(0) 推荐(0)
摘要: There is a row of n houses, where each house can be painted one of three colors: red, blue, or green. The cost of painting each house with a certain c 阅读全文
posted @ 2022-06-25 06:34 CNoodle 阅读(147) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 64 下一页