摘要: Use max_so_far and max_ending 阅读全文
posted @ 2018-04-14 02:01 jjjjjj_jia 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18]. The follow 阅读全文
posted @ 2018-04-10 06:43 jjjjjj_jia 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. There are two ways, first use ArrayList to rewrite 阅读全文
posted @ 2018-02-18 07:42 jjjjjj_jia 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Symmetric Tree Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4 阅读全文
posted @ 2018-02-16 10:00 jjjjjj_jia 阅读(163) 评论(0) 推荐(0) 编辑