上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there exists a pe 阅读全文
posted @ 2018-12-27 23:47 yuxihong 阅读(129) 评论(0) 推荐(0) 编辑
摘要: A full binary tree is a binary tree where each node has exactly 0 or 2 children. Return a list of all possible full binary trees with N nodes. Each el 阅读全文
posted @ 2018-12-26 17:18 yuxihong 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given a list of 24-hour clock time points in "Hour:Minutes" format, find the minimum minutes difference between any two time points in the list. Examp 阅读全文
posted @ 2018-12-26 15:45 yuxihong 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Alice has a hand of cards, given as an array of integers. Now she wants to rearrange the cards into groups so that each group is size W, and consists 阅读全文
posted @ 2018-12-26 15:20 yuxihong 阅读(135) 评论(0) 推荐(0) 编辑
摘要: You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can follow an 阅读全文
posted @ 2018-12-26 14:59 yuxihong 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of them. Two 阅读全文
posted @ 2018-12-26 06:32 yuxihong 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar 阅读全文
posted @ 2018-12-26 05:50 yuxihong 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the roo 阅读全文
posted @ 2018-12-26 05:32 yuxihong 阅读(121) 评论(0) 推荐(0) 编辑
摘要: We have a two dimensional matrix A where each value is 0 or 1. A move consists of choosing any row or column, and toggling each value in that row or c 阅读全文
posted @ 2018-12-26 03:39 yuxihong 阅读(143) 评论(0) 推荐(0) 编辑
摘要: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http 阅读全文
posted @ 2018-12-26 03:15 yuxihong 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页