摘要:
public class Solution { /* * @param triangle: a list of lists of integers * @return: An integer, minimum path sum */ public int minimumTotal(int[][] triangle) { // writ... 阅读全文
摘要:
/** * Definition of TreeNode: * public class TreeNode { * public int val; * public TreeNode left, right; * public TreeNode(int val) { * this.val = val; * this.left ... 阅读全文
摘要:
public class Solution { /** * @param num: an integer * @return: an integer, the number of ones in num */ /* 负数的二进制是其绝对值的补码(反码+1) 1 源码: 0001 1 反码: 1110 阅读全文
摘要:
/** * Definition of TreeNode: * public class TreeNode { * public int val; * public TreeNode left, right; * public TreeNode(int val) { * this.val = val; * this.left ... 阅读全文