摘要:
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2016-03-02 14:20
哥布林工程师
阅读(163)
评论(0)
推荐(0)
摘要:
Merge two sorted (ascending) linked lists and return it as a new sorted list. The new sorted list should be made by splicing together the nodes of the 阅读全文
posted @ 2016-03-02 14:08
哥布林工程师
阅读(154)
评论(0)
推荐(0)
摘要:
Merge two given sorted integer array A and B into a new sorted integer array. A=[1,2,3,4] B=[2,4,5,6] return [1,2,2,3,4,4,5,6] 感觉和上一个题没啥区别 class Solut 阅读全文
posted @ 2016-03-02 13:59
哥布林工程师
阅读(158)
评论(0)
推荐(0)
摘要:
Given two sorted integer arrays A and B, merge B into A as one sorted array. A = [1, 2, 3, empty, empty], B = [4, 5] After merge, A will be filled as 阅读全文
posted @ 2016-03-02 13:41
哥布林工程师
阅读(179)
评论(0)
推荐(0)
摘要:
Given a collection of intervals, merge all overlapping intervals. Given intervals => merged intervals: [ [ [1, 3], [1, 6], [2, 6], => [8, 10], [8, 10] 阅读全文
posted @ 2016-03-02 13:26
哥布林工程师
阅读(231)
评论(0)
推荐(0)
摘要:
Given a unsorted array with integers, find the median of it. A median is the middle number of the array after it is sorted. If there are even numbers 阅读全文
posted @ 2016-03-02 13:18
哥布林工程师
阅读(185)
评论(0)
推荐(0)

浙公网安备 33010602011771号