摘要: LeetCode 104 Maximum Depth of Binary Treehttps://leetcode.com/problems/maximum-depth-of-binary-tree//** * Definition for a binary tree node. * struct ... 阅读全文
posted @ 2015-10-17 10:10 Walker_Lee 阅读(92) 评论(0) 推荐(0)
摘要: LeetCode 292 Nim Gamehttps://leetcode.com/problems/nim-game/当能被4整除时,才会输。bool canWinNim(int n) { return n%4;} 阅读全文
posted @ 2015-10-14 19:27 Walker_Lee 阅读(92) 评论(0) 推荐(0)
摘要: LeetCode 258 Add Digitshttps://leetcode.com/problems/add-digits/该题主要用到了树根这个概念 ,百度百科链接:http://baike.baidu.com/view/5820558.htm#include int addDigits(in... 阅读全文
posted @ 2015-10-12 15:23 Walker_Lee 阅读(98) 评论(0) 推荐(0)