摘要: VMware虚拟机三种网络模式详解 NAT(地址转换模式) [日期:2016-09-26] 来源:Linux社区 作者:Linux [字体:大 中 小] 二、NAT(地址转换模式) 刚刚我们说到,如果你的网络ip资源紧缺,但是你又希望你的虚拟机能够联网,这时候NAT模式是最好的选择。NAT模式借助虚 阅读全文
posted @ 2020-11-28 20:28 helloworldmybokeyuan 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 一、手动创建并开启了一个线程 此时主程序会继续向下执行,不会停在这里,如果主程序执行完成而开启的线程还没有执行完成,则会等待线程执行完毕,最终程序结束运行 若想主程序结束,子程序立即结束,可以在线程开启之前设置其为守护线程 二、使用线程池提交了任务 此时主程序会继续向下执行,不会停在这里,如果主程序 阅读全文
posted @ 2020-09-17 08:56 helloworldmybokeyuan 阅读(251) 评论(0) 推荐(0) 编辑
摘要: public int uniquePaths(int m,int n){ int[][] dp = new int[m][n]; for(int i=0;i<n;i++){ dp[0][i] = 1; } for(int i=0;i<m;i++){ dp[i][0] = 1; } for(int i 阅读全文
posted @ 2020-08-06 15:09 helloworldmybokeyuan 阅读(146) 评论(0) 推荐(0) 编辑
摘要: public int minPathSum(int[][] grid){ for(int i=0;i<grid.length;i++){ for(int j=0;j<grid[0].length;j++){ if(i==0 && j==0){ continue; }else if(i==0){ gr 阅读全文
posted @ 2020-08-06 15:07 helloworldmybokeyuan 阅读(259) 评论(0) 推荐(0) 编辑
摘要: public int climbStairs(int n){ if(n == 1){ return 1; } int[] dp = new int[n+1]; dp[1] = 1; dp[2] = 2; for(int i =3;i<=n;i++){ dp[i] = dp[i-1] + dp[i-2 阅读全文
posted @ 2020-08-06 15:06 helloworldmybokeyuan 阅读(77) 评论(0) 推荐(0) 编辑
摘要: public void move(int n, String from, String buffer, String to){ if(n==1){ System.out.println("from "+ from +" to " + to); } move(n-1, from, to, buffer 阅读全文
posted @ 2020-08-06 15:04 helloworldmybokeyuan 阅读(72) 评论(0) 推荐(0) 编辑
摘要: //144. Binary Tree Preorder Traversal (Medium) public List<Integer> preorderTraversal(TreeNode root){ List<Integer> ret = new ArrayList<Integer>(); if 阅读全文
posted @ 2020-08-06 15:02 helloworldmybokeyuan 阅读(128) 评论(0) 推荐(0) 编辑
摘要: public ListNode addTwoNumbers(ListNode l1,ListNode l2){ Stack<Integer> stack1 = buildStack(l1); Stack<Integer> stack2 = buildStack(l2); ListNode head 阅读全文
posted @ 2020-08-06 15:00 helloworldmybokeyuan 阅读(83) 评论(0) 推荐(0) 编辑
摘要: public ListNode reverseList(ListNode head){ ListNode newHead = new ListNode(); while(head!=null){ ListNode next = head.next; head.next = newHead.next; 阅读全文
posted @ 2020-08-06 14:58 helloworldmybokeyuan 阅读(68) 评论(0) 推荐(0) 编辑
摘要: //方法一 入度表(广度优先遍历) public boolean canFinish(int numCourses,int[][] prerequisites){ int[] indegrees = new int[numCourses]; List<List<Integer>> adjacency 阅读全文
posted @ 2020-08-06 14:56 helloworldmybokeyuan 阅读(160) 评论(0) 推荐(0) 编辑