https://leetcode.com/problems/evaluate-boolean-binary-tree/description/
Evaluate tree where
Evaluate tree where
0/1
is false/true
and 2/3
is or/and
#easy #tree #dfs👍1🔥1
https://leetcode.com/problems/delete-leaves-with-a-given-value/description/
Recursively remove
Recursively remove
target
leafs from the tree #easy #dfs #tree👍1🔥1
https://leetcode.com/problems/distribute-coins-in-binary-tree/description/
Min moves to spread the coins across the tree #medium #dfs #tree
Min moves to spread the coins across the tree #medium #dfs #tree
👍1🔥1
https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/description/
Aggregate Binary Search Tree from the right #medium #tree
Aggregate Binary Search Tree from the right #medium #tree
👍1
https://leetcode.com/problems/step-by-step-directions-from-a-binary-tree-node-to-another/description/
U
-L
-R
path from s
to d
in a Binary Tree #medium #tree👍3
https://leetcode.com/problems/delete-nodes-and-return-forest/description/
Trees after remove nodes from tree #medium #tree
Trees after remove nodes from tree #medium #tree
👍3
https://leetcode.com/problems/number-of-good-leaf-nodes-pairs/description/
Count at most
Count at most
distance
paths between leafs #medium #tree👍2
https://leetcode.com/problems/n-ary-tree-postorder-traversal/description/
Postorder tree traversal #easy #tree
Postorder tree traversal #easy #tree
👍2
https://leetcode.com/problems/linked-list-in-binary-tree/description/
Is the LinkedList in the BinaryTree? #medium #linked_list #tree
Is the LinkedList in the BinaryTree? #medium #linked_list #tree
👍2
https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/description/
Smallest intersection of
Smallest intersection of
k
sorted lists #medium #heap #tree_set👍3❤1
https://leetcode.com/problems/continuous-subarrays/description/
Count subarrays with difference <= 2 #medium #monotonic_queue #tree_set
Count subarrays with difference <= 2 #medium #monotonic_queue #tree_set
🔥2👍1
https://leetcode.com/problems/reverse-odd-levels-of-binary-tree/description/
Odd-levels reversal in a perfect tree #medium #dfs #bfs #tree
Odd-levels reversal in a perfect tree #medium #dfs #bfs #tree
👍2
https://leetcode.com/problems/find-the-maximum-sum-of-node-values/description/
Max sum by k-xoring edges #hard #tree #dp
Max sum by k-xoring edges #hard #tree #dp
👍2