oj
Algorithm OJ and Java examples.
View on GitHub
分治法
问题可以拆分为多个子问题时,可以采用分治法。
如LeetCode 23题,链接K个链表,可以拆解成多个“链接2个链表的子问题”。