Integer_min_value

1 public class Test{
2    public static void main(String[] args){
3       int num = _;
4           if(num<0&&num==Math.abs(num)){
5                   System.out.println("Hello world!");
6           }
7     }
8 }
9 num应该为什么值时才运行Hello world?

时间: 2024-10-23 10:40:47

Integer_min_value的相关文章

LeetCode: Binary Tree Maximum Path Sum 解题报告

Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example:Given the below binary tree, 1      / \     2   3 SOLUTION 1: 计算树的最长path有2种情况: 1. 通过根的path. (1)如果左子树从左树根到任何一个N

[解题报告]Binary Tree Maximum Path Sum

题目: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. Example Given the below binary tree: 1 / 2 3 return 6. 思路: 计算树的最长path有2种情况: 1. 通过根的path. (1)如果左子树从左树根到任何一个Node的path大于零,可以链到root上 (2)如果右子树从右树根到任何一个