上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 76 下一页
摘要: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
posted @ 2020-01-24 10:24 Schwifty 阅读(114) 评论(0) 推荐(0)
摘要: You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that a 阅读全文
posted @ 2020-01-24 08:56 Schwifty 阅读(146) 评论(0) 推荐(0)
摘要: Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 阅读全文
posted @ 2020-01-23 09:24 Schwifty 阅读(122) 评论(0) 推荐(0)
摘要: You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] class Solution { public List< 阅读全文
posted @ 2020-01-23 09:13 Schwifty 阅读(152) 评论(0) 推荐(0)
摘要: Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values 阅读全文
posted @ 2020-01-23 08:54 Schwifty 阅读(116) 评论(0) 推荐(0)
摘要: There is a one-dimensional garden on the x-axis. The garden starts at the point 0 and ends at the point n. (i.e The length of the garden is n). There 阅读全文
posted @ 2020-01-22 09:26 Schwifty 阅读(283) 评论(0) 推荐(0)
摘要: You are given a series of video clips from a sporting event that lasted T seconds. These video clips can be overlapping with each other and have varie 阅读全文
posted @ 2020-01-22 09:24 Schwifty 阅读(370) 评论(0) 推荐(0)
摘要: Given a binary tree root and an integer target, delete all the leaf nodes with value target. Note that once you delete a leaf node with value target,  阅读全文
posted @ 2020-01-22 05:39 Schwifty 阅读(311) 评论(0) 推荐(0)
摘要: Given a string s. Return all the words vertically in the same order in which they appear in s.Words are returned as a list of strings, complete with s 阅读全文
posted @ 2020-01-22 04:21 Schwifty 阅读(611) 评论(0) 推荐(0)
摘要: Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9, and 阅读全文
posted @ 2020-01-22 03:27 Schwifty 阅读(166) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 76 下一页