2017年8月1日

sort-list

摘要: /*sort-list*/ /**************/ /* Sort a linked list in O(n log n) time using constant space complexity. */ /*************/ struct ListNode{ int val; ListNode *next; ListNode(int x):val(... 阅读全文

posted @ 2017-08-01 17:21 wangdake_tec 阅读(138) 评论(0) 推荐(0)

非递归实现树的前序遍历

摘要: /*binary-tree-postorder-traversal*/ /***************************/ /* Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree{1,#,2,3}, 1 \ ... 阅读全文

posted @ 2017-08-01 17:05 wangdake_tec 阅读(171) 评论(0) 推荐(0)

导航