摘要: 题目:Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.Note: The input string may co... 阅读全文
posted @ 2015-12-15 23:29 YRB 阅读(3377) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given[10, 9, 2, 5, 3, 7, 101, 18],The longest in... 阅读全文
posted @ 2015-12-15 12:24 YRB 阅读(2902) 评论(0) 推荐(0) 编辑
摘要: 题目: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each 阅读全文
posted @ 2015-12-15 09:00 YRB 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some starting node to 阅读全文
posted @ 2015-12-15 07:36 YRB 阅读(2608) 评论(0) 推荐(0) 编辑
摘要: 题目: Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, 阅读全文
posted @ 2015-12-15 07:16 YRB 阅读(3585) 评论(0) 推荐(0) 编辑
摘要: 题目: A group of two or more people wants to meet and minimize the total travel distance. You are given a 2D grid of values 0 or 1, where each 1 marks t 阅读全文
posted @ 2015-12-15 01:58 YRB 阅读(833) 评论(0) 推荐(0) 编辑