1261. Find Elements in a Contaminated Binary Tree
1261. Find Elements in a Contaminated Binary Tree
Description
Given a binary tree with the following rules:
1261. Find Elements in a Contaminated Binary Tree
Given a binary tree with the following rules:
513. Find Bottom Left Tree Value
Given the root
of a binary tree, return the leftmost value in the last row of the tree.
1602. Find Nearest Right Node in Binary Tree
Given the root
of a binary tree and a node u
in the tree, return the nearest node on the same level that is to the right of u
, or return null
if u
is the rightmost node in its level.
1469. Find All The Lonely Nodes
In a binary tree, a lonely node is a node that is the only child of its parent node. The root of the tree is not lonely because it does not have a parent node.
1448. Count Good Nodes in Binary Tree
Given a binary tree root
, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X.