摘要:
/** public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = val; } } */ public class S 阅读全文
摘要:
今天去笔试了一家公司,题目是打印一个直角三角形 条件是只能用一重for循环 我当时想岔了,一心只想着用数组,其实不用数组也完全可以的,用ArrayList打印一下就好了 import java.util.ArrayList; public class Triangle { public static 阅读全文
摘要:
import java.util.*;import java.math.*;public class CaculatorLnN { public static void main(String[] args) { // TODO 自动生成的方法存根 int N; System.out.println 阅读全文