# LeetCode 1315. Sum of Nodes with Even-Valued Grandparent

Description https://leetcode.com/problems/sum-of-nodes-with-even-valued-grandparent/ Given a binary tree, return the sum of values of nodes with even-valued grandparent.  (A grandparent of a node is…

# LeetCode 654. Maximum Binary Tree

Description https://leetcode.com/problems/all-elements-in-two-binary-search-trees/ You are given an integer array nums with no duplicates. A maximum binary tree can be built recursively from nums using the following algorithm:…

# LeetCode 1305. All Elements in Two Binary Search Trees

Description https://leetcode.com/problems/all-elements-in-two-binary-search-trees/ Given two binary search trees root1 and root2. Return a list containing all the integers from both trees sorted in ascending order. Example 1: Input: root1 =…

# LeetCode 872. Leaf-Similar Trees

Description https://leetcode.com/problems/leaf-similar-trees/ Consider all the leaves of a binary tree, from left to right order, the values of those leaves form a leaf…

# LeetCode 783. Minimum Distance Between BST Nodes

Description https://leetcode.com/problems/minimum-distance-between-bst-nodes/ Given the root of a Binary Search Tree (BST), return the minimum difference between the values of any two different nodes…

# LeetCode 404. Sum of Left Leaves

Description https://leetcode.com/problems/sum-of-left-leaves/ Given the root of a binary tree, return the sum of all left leaves. Example 1: Input: root = [3,9,20,null,null,15,7]…

# LeetCode 559. Maximum Depth of N-ary Tree

Description https://leetcode.com/problems/maximum-depth-of-n-ary-tree/ Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the…

# LeetCode 257. Binary Tree Paths

Description https://leetcode.com/problems/path-crossing/ Given the root of a binary tree, return all root-to-leaf paths in any order. A leaf is a node with no children. Example 1:…

# LeetCode 530. Minimum Absolute Difference in BST

Description https://leetcode.com/problems/minimum-absolute-difference-in-bst/ Given the root of a Binary Search Tree (BST), return the minimum absolute difference between the values of any two different…

# LeetCode 671. Second Minimum Node In a Binary Tree

Description https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/ Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this…