摘要:
I will first give the solution then show you the magic template. The code of solving this problem is below. It might be the shortest among all solutio 阅读全文
摘要:
题目描述: Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. 思路:二分查找,时间复杂度O(logn)。 if(mid的平 阅读全文
摘要:
题目描述:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted 阅读全文
摘要:
题目描述:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 出错: 阅读全文