上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 64 下一页
摘要: Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. In Pascal's triangle, each number is the sum of the two num 阅读全文
posted @ 2020-05-14 08:10 CNoodle 阅读(454) 评论(0) 推荐(0)
摘要: Given an integer numRows, return the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly abov 阅读全文
posted @ 2020-05-14 07:25 CNoodle 阅读(574) 评论(0) 推荐(0)
摘要: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating 阅读全文
posted @ 2020-05-14 05:24 CNoodle 阅读(354) 评论(0) 推荐(0)
摘要: Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num. Exa 阅读全文
posted @ 2020-05-14 01:51 CNoodle 阅读(152) 评论(0) 推荐(0)
摘要: You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are in the inclusive range. A number x is c 阅读全文
posted @ 2020-05-13 13:55 CNoodle 阅读(243) 评论(0) 推荐(0)
摘要: You are given a sorted unique integer array nums. A range [a,b] is the set of all integers from a to b (inclusive). Return the smallest sorted list of 阅读全文
posted @ 2020-05-13 12:30 CNoodle 阅读(195) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, calculate the vertical order traversal of the binary tree. For each node at position (row, col), its left and right c 阅读全文
posted @ 2020-05-13 10:52 CNoodle 阅读(230) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, return the vertical order traversal of its nodes' values. (i.e., from top to bottom, column by column). If two nodes 阅读全文
posted @ 2020-05-13 05:47 CNoodle 阅读(287) 评论(0) 推荐(0)
摘要: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequ 阅读全文
posted @ 2020-05-13 02:28 CNoodle 阅读(629) 评论(0) 推荐(0)
摘要: You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. 阅读全文
posted @ 2020-05-13 00:59 CNoodle 阅读(247) 评论(0) 推荐(0)
摘要: Given an undirected tree consisting of n vertices numbered from 0 to n-1, which has some apples in their vertices. You spend 1 second to walk over one 阅读全文
posted @ 2020-05-12 13:41 CNoodle 阅读(780) 评论(0) 推荐(0)
摘要: Given an array of integers arr. We want to select three indices i, j and k where (0 <= i < j <= k < arr.length). Let's define a and b as follows: a = 阅读全文
posted @ 2020-05-12 07:03 CNoodle 阅读(586) 评论(0) 推荐(0)
摘要: You are given an integer array target and an integer n. You have an empty stack with the two following operations: "Push": pushes an integer to the to 阅读全文
posted @ 2020-05-11 14:38 CNoodle 阅读(435) 评论(0) 推荐(0)
摘要: Suppose you are at a party with n people labeled from 0 to n - 1 and among them, there may exist one celebrity. The definition of a celebrity is that 阅读全文
posted @ 2020-05-11 09:28 CNoodle 阅读(233) 评论(0) 推荐(0)
摘要: In a town, there are n people labeled from 1 to n. There is a rumor that one of these people is secretly the town judge. If the town judge exists, the 阅读全文
posted @ 2020-05-11 06:46 CNoodle 阅读(249) 评论(0) 推荐(0)
摘要: You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight 阅读全文
posted @ 2020-05-09 09:32 CNoodle 阅读(316) 评论(0) 推荐(0)
摘要: Given an input string s and a pattern p, implement regular expression matching with support for '.' and '*' where: '.' Matches any single character. ' 阅读全文
posted @ 2020-05-09 08:10 CNoodle 阅读(428) 评论(0) 推荐(0)
摘要: There are n servers numbered from 0 to n-1 connected by undirected server-to-server connections forming a network where connections[i] = [a, b] repres 阅读全文
posted @ 2020-05-09 05:54 CNoodle 阅读(334) 评论(0) 推荐(0)
摘要: You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are connected hor 阅读全文
posted @ 2020-05-08 14:38 CNoodle 阅读(220) 评论(0) 推荐(0)
摘要: Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position 阅读全文
posted @ 2020-05-08 12:13 CNoodle 阅读(448) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 64 下一页