摘要: 1.继承Thread,并重写run()方法,重写run方法,该方法是线程执行体 2.通过Runable去创建线程,也是重写run方法,该方法是线程执行体 执行结果部分结果: 可以看出线程1和线程2共享了MyRunnable实例对象的i。 3.通过Callable和Future创建线程,通过继承Thr 阅读全文
posted @ 2019-04-15 17:11 小白兔云 阅读(243) 评论(0) 推荐(0)
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo 阅读全文
posted @ 2019-04-15 15:44 小白兔云 阅读(180) 评论(0) 推荐(0)
摘要: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL 阅读全文
posted @ 2019-04-15 11:16 小白兔云 阅读(128) 评论(0) 推荐(0)