摘要:
public class Leetcode124 { int res = Integer.MIN_VALUE; public int maxPathSum(TreeNode root) { dfs(root); return res; } public int dfs(TreeNode node) 阅读全文
摘要:
class Solution { public double myPow(double x, int n) { if(x==0) return 0; //快速幂 double ans = 1.0; long n_tmp = n; //如果n为负数 if (n_tmp < 0) { x = 1/x; 阅读全文