上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 76 下一页
摘要: 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 阅读(143) 评论(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)
摘要: You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2020-07-08 01:30 Schwifty 阅读(136) 评论(0) 推荐(0)
摘要: Given a rows * columns matrix mat of ones and zeros, return how many submatrices have all ones. Example 1: Input: mat = [[1,0,1], [1,1,0], [1,1,0]] Ou 阅读全文
posted @ 2020-07-07 10:40 Schwifty 阅读(733) 评论(0) 推荐(0)
摘要: We have a wooden plank of the length n units. Some ants are walking on the plank, each ant moves with speed 1 unit per second. Some of the ants move t 阅读全文
posted @ 2020-07-07 07:19 Schwifty 阅读(211) 评论(0) 推荐(0)
摘要: Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is the 阅读全文
posted @ 2020-07-06 06:32 Schwifty 阅读(288) 评论(0) 推荐(0)
摘要: Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes  阅读全文
posted @ 2020-07-05 06:19 Schwifty 阅读(132) 评论(0) 推荐(0)
摘要: For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now i 阅读全文
posted @ 2020-07-04 12:51 Schwifty 阅读(132) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 76 下一页