摘要: QuestionFind thekth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.Fo... 阅读全文
posted @ 2015-09-22 07:24 树獭君 阅读(692) 评论(0) 推荐(0) 编辑
摘要: QuestionMergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.Solution 1 -- Merge SortWe can follow the meth... 阅读全文
posted @ 2015-09-22 04:53 树獭君 阅读(135) 评论(0) 推荐(0) 编辑
摘要: QuestionThere are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexit... 阅读全文
posted @ 2015-09-22 03:03 树獭君 阅读(192) 评论(0) 推荐(0) 编辑