摘要:
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.思路:合并k个有序链表为一个有序链表。我们可以用先合并两个链表的方法,然后逐个遍历链表数组,与上一个合并结束... 阅读全文
posted @ 2014-05-10 10:21
Awy
阅读(118)
评论(0)
推荐(0)
摘要:
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig... 阅读全文
posted @ 2014-05-10 09:20
Awy
阅读(108)
评论(0)
推荐(0)