摘要: Convert a binary search tree to doubly linked list with in-order traversal. Have you met this question in a real interview? Yes Convert a binary searc 阅读全文
posted @ 2016-08-18 05:47 amazingzoe 阅读(166) 评论(0) 推荐(0)
摘要: Calculate the an % b where a, b and n are all 32bit integers. Analyse: divide and conquer. Be aware of overflow. Runtime: 12ms 阅读全文
posted @ 2016-08-18 04:57 amazingzoe 阅读(185) 评论(0) 推荐(0)
摘要: Print numbers from 1 to the largest number with N digits by recursion. Notice It's pretty easy to do recursion like: recursion(i) { if i > largest num 阅读全文
posted @ 2016-08-18 04:21 amazingzoe 阅读(352) 评论(0) 推荐(0)