上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 54 下一页
摘要: Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be integ 阅读全文
posted @ 2016-07-22 00:28 北叶青藤 阅读(214) 评论(0) 推荐(0)
摘要: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representati 阅读全文
posted @ 2016-07-21 23:00 北叶青藤 阅读(230) 评论(0) 推荐(0)
摘要: Given a (decimal - e.g. 3.72) number that is passed in as a string, return the binary representation that is passed in as a string. If the fractional 阅读全文
posted @ 2016-07-21 13:29 北叶青藤 阅读(289) 评论(0) 推荐(0)
摘要: Given an expression string array, return the Reverse Polish notation of this expression. (remove the parentheses) Given an expression string array, re 阅读全文
posted @ 2016-07-21 11:52 北叶青藤 阅读(308) 评论(0) 推荐(0)
摘要: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following re 阅读全文
posted @ 2016-07-21 05:52 北叶青藤 阅读(204) 评论(0) 推荐(0)
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2016-07-21 02:46 北叶青藤 阅读(201) 评论(0) 推荐(0)
摘要: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example Given 4 points: (1,2), (3,6), (0,0), (1,3) 阅读全文
posted @ 2016-07-21 01:28 北叶青藤 阅读(262) 评论(0) 推荐(0)
摘要: Given an interval list which are flying and landing time of the flight. How many airplanes are on the sky at most? Notice If landing and flying happen 阅读全文
posted @ 2016-07-20 23:18 北叶青藤 阅读(280) 评论(0) 推荐(0)
摘要: Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Comparison of a nut to ano 阅读全文
posted @ 2016-07-20 22:42 北叶青藤 阅读(274) 评论(0) 推荐(0)
摘要: Given an array of n integer with duplicate number, and a moving window(size k), move the window at each iteration from the start of the array, find th 阅读全文
posted @ 2016-07-20 05:33 北叶青藤 阅读(160) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 54 下一页