Same Tree: Given the roots of two binary trees p and q, write a function to check if they are the same or not.
read more
Same Tree: Given the roots of two binary trees p and q, write a function to check if they are the same or not.
read more
Invert A Binary Tree: Given the root of a binary tree, invert the tree, and return its root.
read more
Find Smallest Letter Greater Than Target: You are given an array of characters letters that is sorted in non-decreasing order, and a character target.
read more
Binary Search: Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums.
read more
Minimum Depth of Binary Tree: Given a binary tree, find its minimum depth.
read more
Average of Levels in Binary Tree: Given the root of a binary tree, return the average value of the nodes on each level in the form of an array.
read moreDon’t settle for anything less than the crown. Join our newsletter and become the King of Interviews! Click here to join now and get the latest updates.