摘要: 1.线程和进程 什么是线程? 线程的五种状态是什么 run()和start()的区别? https://www.cnblogs.com/renhui/p/6066750.html 实现方法:继承Thread类,implement Runnable接口(新线程需要把我们创建的类传入) 两个线程交替打印 阅读全文
posted @ 2020-07-10 13:46 Schwifty 阅读(133) 评论(0) 推荐(0)
摘要: Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversa 阅读全文
posted @ 2020-07-10 10:58 Schwifty 阅读(144) 评论(0) 推荐(0)
摘要: Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Input: 3 / \ 9 20 / \ 15 7 Outp 阅读全文
posted @ 2020-07-10 10:16 Schwifty 阅读(124) 评论(0) 推荐(0)
摘要: Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar 阅读全文
posted @ 2020-07-10 04:16 Schwifty 阅读(159) 评论(0) 推荐(0)