Problem Statement: Postorder Traversal of a binary tree. Write a program for the postorder traversal of a binary tree. Example: Disclaimer:
Continue readingCategory: Data Structure
Vertical Order Traversal of Binary Tree
Problem Statement: Vertical Order Traversal Of A Binary Tree. Write a program for Vertical Order Traversal order of a Binary Tree.
Continue readingMerge two Sorted Arrays Without Extra Space
Problem statement: Given two sorted arrays arr1[] and arr2[] of sizes n and m in non-decreasing order. Merge them in
Continue readingImplement Queue Using Array
Problem Statement: Implement Queue Data Structure using Array with all functions like pop, push, top, size, etc. Example: Input: push(4) push(14)
Continue readingMerge Overlapping Sub-intervals
Problem Statement: Given an array of intervals, merge all the overlapping intervals and return an array of non-overlapping intervals. Examples
Continue readingImplement LRU Cache
Problem Statement: “Design a data structure that follows the constraints of Least Recently Used (LRU) cache”. Implement the LRUCache class:
Continue readingCombination Sum – 1
Problem Statement: Given an array of distinct integers and a target, you have to return the list of all unique
Continue readingSubset Sum : Sum of all Subsets
Problem Statement: Given an array print all the sum of the subset generated from it, in the increasing order. Examples:
Continue readingPalindrome Partitioning
Problem Statement: You are given a string s, partition it in such a way that every substring is a palindrome.
Continue readingRotate Image by 90 degree
Problem Statement: Given a matrix, your task is to rotate the matrix 90 degrees clockwise. Note: Rotate matrix 90 degrees
Continue reading