摘要: Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.Analyse: Similiar to merge sort algorithm. Reuse the c... 阅读全文
posted @ 2015-07-21 22:00 amazingzoe 阅读(128) 评论(0) 推荐(0)
摘要: Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is great... 阅读全文
posted @ 2015-07-21 18:30 amazingzoe 阅读(132) 评论(0) 推荐(0)
摘要: Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest... 阅读全文
posted @ 2015-07-21 17:17 amazingzoe 阅读(129) 评论(0) 推荐(0)