摘要:
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文
posted @ 2017-10-24 15:10
daniel456
阅读(128)
评论(0)
推荐(0)
摘要:
There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have t 阅读全文
posted @ 2017-10-24 14:42
daniel456
阅读(122)
评论(0)
推荐(0)
摘要:
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. Example 1: Input: 阅读全文
posted @ 2017-10-24 14:25
daniel456
阅读(193)
评论(0)
推荐(0)
摘要:
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 题目含义:给定一个升序的列表,构造一个平衡二叉树 平衡二叉树:二叉排序树集中了数 阅读全文
posted @ 2017-10-24 14:16
daniel456
阅读(118)
评论(0)
推荐(0)
摘要:
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen 阅读全文
posted @ 2017-10-24 14:05
daniel456
阅读(140)
评论(0)
推荐(0)
摘要:
Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing su 阅读全文
posted @ 2017-10-24 13:57
daniel456
阅读(218)
评论(0)
推荐(0)
摘要:
Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is b 阅读全文
posted @ 2017-10-24 13:52
daniel456
阅读(193)
评论(0)
推荐(0)
摘要:
There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct 阅读全文
posted @ 2017-10-24 13:45
daniel456
阅读(220)
评论(0)
推荐(0)
摘要:
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: 阅读全文
posted @ 2017-10-24 13:32
daniel456
阅读(114)
评论(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 @ 2017-10-24 13:24
daniel456
阅读(123)
评论(0)
推荐(0)

浙公网安备 33010602011771号