摘要: Recently I systematicall review some sorting algorithms, including insertion sort, bubble sort, merge sort and quick sort. I then implement them in C+... 阅读全文
posted @ 2015-06-04 22:45 jianchao-li 阅读(382) 评论(0) 推荐(0)
摘要: Recently I reviewed the classic heapsort algorithm and implement it according to contents in Introduction to Algorithms (3rd edition). The heap data s... 阅读全文
posted @ 2015-06-04 22:33 jianchao-li 阅读(265) 评论(0) 推荐(0)
摘要: The problem has a nice structure that backtracking naturally fits in. The structure is, given a starting positionidx, we search fromidxtill the end of... 阅读全文
posted @ 2015-06-04 20:35 jianchao-li 阅读(194) 评论(0) 推荐(0)
摘要: This problem is somewhat tricky at first glance. However, the final implementation is fairly simple using recursion.The basic idea is, visiting every ... 阅读全文
posted @ 2015-06-04 10:00 jianchao-li 阅读(275) 评论(0) 推荐(0)