随笔分类 -  Some Algorithm

Tree Traversal
摘要:Basic Tree TraversalDepth First Traversal:1. In order traversal----left, root, right----4,2,5,1,32. Pre order traversal-----root, left, right-----1,2,... 阅读全文

posted @ 2014-11-27 07:25 SuperBo 阅读(127) 评论(0) 推荐(0)

Java tricks & knowledge Summary
摘要:1. Get number of digits in an intvar length = (int)Math.Floor(Math.Log10(n) + 1);2. Keyword SuperUse super to refer superclass method if the method ha... 阅读全文

posted @ 2014-11-16 11:33 SuperBo 阅读(173) 评论(0) 推荐(0)