摘要: Implement pow(x, n). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3 Output: 9.26100 1.二分法递归。 把pow(x,n)拆解为pow(x,n/2) 的平方 阅读全文
posted @ 2017-11-10 15:35 jasminemzy 阅读(172) 评论(0) 推荐(0)
摘要: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. private Comparator<ListNode> listComparator = new C 阅读全文
posted @ 2017-11-10 04:17 jasminemzy 阅读(131) 评论(0) 推荐(0)