摘要:
Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. Subscribe to see which companies asked 阅读全文
posted @ 2016-03-22 00:11
ZHOU YANG
阅读(151)评论(0)推荐(0)
摘要:
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Subscribe to see which companies asked this question 思路:类似归并排序,每个链表已经排好序了,现在只需要将各个链表合并成一个链表。要点:分而治之,最后... 阅读全文
posted @ 2016-03-18 20:13
ZHOU YANG
阅读(227)评论(0)推荐(0)
摘要:
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding elemen 阅读全文
posted @ 2016-03-17 21:44
ZHOU YANG
阅读(418)评论(0)推荐(0)