Fork me on GitHub
摘要: BlockingQueue阻塞队列 A Queue that additionally supports operations that wait for the queue to become non-empty when retrieving an element, and wait for s 阅读全文
posted @ 2021-04-26 10:45 WilliamCui 阅读(78) 评论(0) 推荐(0)
摘要: Path Sum 路径和 给一个二叉树,和sum,判断是否存在一条路径上的节点之和等于sum Input: root = [5,4,8,11,null,13,4,7,2,null,null,null,1], targetSum = 22 Output: true 思路 递归向下求解,直到叶子节点并且 阅读全文
posted @ 2021-04-26 10:42 WilliamCui 阅读(128) 评论(0) 推荐(0)