摘要: 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 北叶青藤 阅读(224) 评论(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 北叶青藤 阅读(253) 评论(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 北叶青藤 阅读(299) 评论(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 北叶青藤 阅读(198) 评论(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 北叶青藤 阅读(184) 评论(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 北叶青藤 阅读(249) 评论(0) 推荐(0) 编辑