Author name: Admin

Check for BST

gfg-potd

Given the root of a binary tree. Check whether it is a BST or not.Note: We are considering that BSTs can not

2418. Sort the People

leetcode-potd

You are given an array of strings names, and an array heights that consists of distinct positive integers. Both arrays are of length n. For each

Largest BST

gfg-potd

Given a binary tree. Find the size of its largest subtree which is a Binary Search Tree.Note: Here Size equals the number of

Remove Half Nodes

gfg-potd

You are given a binary tree and you need to remove all the half nodes (which have only one child). Return the

Count Smaller elements

gfg-potd

Given an array arr containing positive integers. Count and return an array ans where ans[i] denotes the number of smaller elements on right side of arr[i]. Examples:

Scroll to Top