上一页 1 2 3 4 5 6 7 8 9 ··· 26 下一页
摘要: Problem LeetCode Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all 阅读全文
posted @ 2021-01-20 22:12 Wonz 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their lev 阅读全文
posted @ 2021-01-11 21:45 Wonz 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of 阅读全文
posted @ 2021-01-11 21:36 Wonz 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given the root of a binary tree, return the postorder traversal of its nodes' values. Example 1: Input: root = [1,null,2,3] Output: [ 阅读全文
posted @ 2021-01-11 21:22 Wonz 阅读(52) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given the root of a binary tree, return the postorder traversal of its nodes' values. Example 1: Input: root = [1,null,2,3] Output: [ 阅读全文
posted @ 2021-01-11 21:20 Wonz 阅读(52) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given the root of a binary tree, return the preorder traversal of its nodes' values. Example 1: Input: root = [1,null,2,3] Output: [1 阅读全文
posted @ 2021-01-10 21:46 Wonz 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf 阅读全文
posted @ 2021-01-10 21:34 Wonz 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for th 阅读全文
posted @ 2021-01-10 21:24 Wonz 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia: In a complete bin 阅读全文
posted @ 2021-01-07 22:59 Wonz 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given the root of a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the 阅读全文
posted @ 2021-01-07 21:23 Wonz 阅读(84) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 26 下一页