gfg-potd

Form a palindrome

gfg-potd

Given a string, find the minimum number of characters to be inserted to convert it to a palindrome. Examples : […]

K-Pangrams

gfg-potd

Given a string str and an integer k, return true if the string can be changed into a pangram after at most k operations, else

Array to BST

gfg-potd

Given a sorted array. Convert it into a Height Balanced Binary Search Tree (BST). Return the root of the BST. Height-balanced BST means a binary tree in

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

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:

Remaining String

gfg-potd

Given a string s without spaces, a character ch and an integer count. Your task is to return the substring that remains after the character ch has appeared count number

Scroll to Top