How to Invert Binary Tree or How to convert a binary tree into its mirror tree. Given a binary tree, we have to write a…
Category: Java
Valid parentheses string with wildcard. Given a string containing only three types of characters: ‘(‘, ‘)’ and ‘*’. Write a function to check whether this…
How to check if two nodes are cousins in a Binary tree. Given two values x and y, we have to write a code to…