上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 33 下一页
摘要: 题目: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, given n = 阅读全文
posted @ 2015-12-10 11:43 YRB 阅读(2459) 评论(0) 推荐(0)
摘要: 题目: You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quali 阅读全文
posted @ 2015-12-10 05:45 YRB 阅读(294) 评论(0) 推荐(0)
摘要: 题目: Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is 阅读全文
posted @ 2015-12-10 05:37 YRB 阅读(1832) 评论(0) 推荐(1)
摘要: 题目: There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjac 阅读全文
posted @ 2015-12-10 01:35 YRB 阅读(882) 评论(0) 推荐(0)
摘要: 题目: Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm? Hint: Expected runtime complex 阅读全文
posted @ 2015-12-09 10:34 YRB 阅读(572) 评论(0) 推荐(0)
摘要: 题目:Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.Accordi... 阅读全文
posted @ 2015-12-09 09:59 YRB 阅读(928) 评论(0) 推荐(0)
摘要: 题目:Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231- 1.For example,123 -> "One Hundre... 阅读全文
posted @ 2015-12-09 06:54 YRB 阅读(1346) 评论(0) 推荐(0)
摘要: 题目: Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note: Given target value is a fl 阅读全文
posted @ 2015-12-09 02:55 YRB 阅读(2215) 评论(0) 推荐(1)
摘要: 题目: Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original 阅读全文
posted @ 2015-12-08 00:51 YRB 阅读(1751) 评论(0) 推荐(0)
摘要: 题目: Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a fl 阅读全文
posted @ 2015-12-07 14:16 YRB 阅读(1747) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 33 下一页