上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 64 下一页
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Input: 阅读全文
posted @ 2020-07-04 04:07 CNoodle 阅读(462) 评论(0) 推荐(0)
摘要: Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to an adjacent number of the row below. More forma 阅读全文
posted @ 2020-07-03 14:36 CNoodle 阅读(558) 评论(0) 推荐(0)
摘要: You have n coins and you want to build a staircase with these coins. The staircase consists of k rows where the ith row has exactly i coins. The last 阅读全文
posted @ 2020-07-02 03:17 CNoodle 阅读(220) 评论(0) 推荐(0)
摘要: Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequent 阅读全文
posted @ 2020-07-01 06:07 CNoodle 阅读(519) 评论(0) 推荐(0)
摘要: Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0. A subsequence o 阅读全文
posted @ 2020-07-01 03:55 CNoodle 阅读(254) 评论(0) 推荐(0)
摘要: Given two integer arrays nums1 and nums2, return the maximum length of a subarray that appears in both arrays. Example 1: Input: nums1 = [1,2,3,2,1], 阅读全文
posted @ 2020-07-01 03:20 CNoodle 阅读(198) 评论(0) 推荐(0)
摘要: You are given a list of airline tickets where tickets[i] = [fromi, toi] represent the departure and the arrival airports of one flight. Reconstruct th 阅读全文
posted @ 2020-06-30 01:50 CNoodle 阅读(218) 评论(0) 推荐(0)
摘要: Given an integer n, return the least number of perfect square numbers that sum to n. A perfect square is an integer that is the square of an integer; 阅读全文
posted @ 2020-06-28 06:09 CNoodle 阅读(204) 评论(0) 推荐(0)
摘要: There are n people whose IDs go from 0 to n - 1 and each person belongs exactly to one group. Given the array groupSizes of length n telling the group 阅读全文
posted @ 2020-06-26 07:01 CNoodle 阅读(325) 评论(0) 推荐(0)
摘要: Given an integer array nums which is sorted in ascending order and all of its elements are unique and given also an integer k, return the kth missing 阅读全文
posted @ 2020-06-26 05:03 CNoodle 阅读(836) 评论(0) 推荐(0)
摘要: Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all 阅读全文
posted @ 2020-06-25 07:50 CNoodle 阅读(508) 评论(0) 推荐(0)
摘要: Given two version strings, version1 and version2, compare them. A version string consists of revisions separated by dots '.'. The value of the revisio 阅读全文
posted @ 2020-06-24 00:55 CNoodle 阅读(209) 评论(0) 推荐(0)
摘要: Given an integer n, return all the structurally unique BST's (binary search trees), which has exactly n nodes of unique values from 1 to n. Return the 阅读全文
posted @ 2020-06-23 09:32 CNoodle 阅读(521) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, return the average value of the nodes on each level in the form of an array. Answers within 10-5 of the actual answer 阅读全文
posted @ 2020-06-23 05:57 CNoodle 阅读(174) 评论(0) 推荐(0)
摘要: Your country has an infinite number of lakes. Initially, all the lakes are empty, but when it rains over the nth lake, the nth lake becomes full of wa 阅读全文
posted @ 2020-06-22 14:14 CNoodle 阅读(665) 评论(0) 推荐(0)
摘要: Given an array of strings names of size n. You will create n folders in your file system such that, at the ith minute, you will create a folder with t 阅读全文
posted @ 2020-06-22 06:20 CNoodle 阅读(598) 评论(0) 推荐(0)
摘要: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi 阅读全文
posted @ 2020-06-21 18:46 CNoodle 阅读(508) 评论(0) 推荐(0)
摘要: The set [1, 2, 3, ..., n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following s 阅读全文
posted @ 2020-06-21 06:20 CNoodle 阅读(457) 评论(0) 推荐(0)
摘要: Given a string S, consider all duplicated substrings: (contiguous) substrings of S that occur 2 or more times. (The occurrences may overlap.) Return a 阅读全文
posted @ 2020-06-20 12:28 CNoodle 阅读(398) 评论(0) 推荐(0)
摘要: Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the resea 阅读全文
posted @ 2020-06-20 04:21 CNoodle 阅读(101) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 64 下一页