03 2016 档案

摘要:  Subscribe to see which companies asked this question     阅读全文
posted @ 2016-03-14 08:16 新一代的天皇巨星 阅读(132) 评论(0) 推荐(0)
摘要:For example, this binary tree is symmetric:   But the following is not:   Note:Bonus points if you could solve it both recursively and iteratively. co 阅读全文
posted @ 2016-03-14 07:56 新一代的天皇巨星 阅读(129) 评论(0) 推荐(0)
摘要:Note:     Subscribe to see which companies asked this question     阅读全文
posted @ 2016-03-14 06:43 新一代的天皇巨星 阅读(419) 评论(0) 推荐(0)
摘要:Note:You may assume that duplicates do not exist in the tree.   Subscribe to see which companies asked this question   阅读全文
posted @ 2016-03-14 05:41 新一代的天皇巨星 阅读(159) 评论(0) 推荐(0)
摘要:Note:You may assume that duplicates do not exist in the tree.   Subscribe to see which companies asked this question       阅读全文
posted @ 2016-03-14 05:02 新一代的天皇巨星 阅读(214) 评论(0) 推荐(0)
摘要:Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the dept 阅读全文
posted @ 2016-03-12 14:29 新一代的天皇巨星 阅读(175) 评论(0) 推荐(0)
摘要:Problem: You have a n x n grid: 2 4 3 1 3 2 1 4 4 2 3 1 1 2 3 4 You have to start at the bottom row (highlighted red) and make your way to the top row 阅读全文
posted @ 2016-03-12 09:12 新一代的天皇巨星 阅读(309) 评论(0) 推荐(0)
摘要:Placeholder 阅读全文
posted @ 2016-03-12 00:33 新一代的天皇巨星 阅读(150) 评论(0) 推荐(0)
摘要:15. 3Sum Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives th 阅读全文
posted @ 2016-03-11 00:06 新一代的天皇巨星 阅读(185) 评论(0) 推荐(0)
摘要:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2016-03-10 13:56 新一代的天皇巨星 阅读(196) 评论(0) 推荐(0)
摘要:332. Reconstruct Itinerary Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerar 阅读全文
posted @ 2016-03-07 05:42 新一代的天皇巨星 阅读(354) 评论(0) 推荐(0)
摘要:380. Insert Delete GetRandom O(1) Design a data structure that supports all following operations in average O(1) time. insert(val): Inserts an item va 阅读全文
posted @ 2016-03-07 05:11 新一代的天皇巨星 阅读(432) 评论(0) 推荐(0)
摘要:207. Course Schedule 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 tak 阅读全文
posted @ 2016-03-06 09:40 新一代的天皇巨星 阅读(212) 评论(0) 推荐(0)
摘要:131. Palindrome Partitioning Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome 阅读全文
posted @ 2016-03-06 07:00 新一代的天皇巨星 阅读(234) 评论(0) 推荐(0)
摘要:133. Clone Graph Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: 阅读全文
posted @ 2016-03-05 13:39 新一代的天皇巨星 阅读(216) 评论(0) 推荐(0)
摘要:102. Binary Tree Level Order Traversal Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by l 阅读全文
posted @ 2016-03-01 01:22 新一代的天皇巨星 阅读(187) 评论(0) 推荐(0)