摘要: public class Solution { public int NumberOf1Between1AndN_Solution(int n) { int count=0; for(int i=1;i<=n;i++){ count+=core(i); } re... 阅读全文
posted @ 2017-10-13 17:52 toov5 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 上面的解法 时间复杂度 空间复杂度较高 阅读全文
posted @ 2017-10-13 16:42 toov5 阅读(225) 评论(0) 推荐(0) 编辑
摘要: class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = val; } } public class Solution { public TreeNode C... 阅读全文
posted @ 2017-10-13 11:01 toov5 阅读(146) 评论(0) 推荐(0) 编辑