摘要: /** * 完全二叉树:要么是满二叉树,要么是在满二叉树的基础上,最后一层的节点是从左到右是依次添加的 * 采用按层遍历的方式判断是不是完全二叉树 */ public class IsCompleteTree { public static void main(String[] args) { Node head = new Node(1); head.left = new Node(2); he 阅读全文
posted @ 2019-10-15 21:34 踏月而来 阅读(397) 评论(0) 推荐(0) 编辑
摘要: js2048小游戏,方格是怎么合并和移动的 index.html 2048.css 2048.js 还要在index.html中引入jquery.js。 阅读全文
posted @ 2019-10-15 15:50 踏月而来 阅读(226) 评论(0) 推荐(0) 编辑
摘要: public class BreakTest { public static void main(String[] args) { // 跳出多层循环,用到了lable标签,给循环定义一个lable标签,这里给内层循环定义了一个lable2标签,lable2的名字可以随便起, // 这里执行了break lable2;后表示跳出了内层循环,代码还会继续执行到 System.out.println( 阅读全文
posted @ 2019-10-15 09:49 踏月而来 阅读(212) 评论(0) 推荐(0) 编辑