TRAINING CATEGORIES
TRAINING PROGRAMS
Problem Statement:
Given the binary Tree and the two nodes say ‘a’ and ‘b’, determine whether the two nodes are cousins of each other or not. Two nodes are cousins of each other if they are at same level and have different parents.
Example:
We use cookies to make interactions with our websites and services easy and meaningful. Please read our Privacy Policy for more details.