摘要: 题目: 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)