8 min Coding ProblemsTrapping Rain Water Problem Statement Given an integer array A[] consisting of N non-negative integers representing an elevation map, where the…July 25, 2023 Read More
7 min Coding ProblemsPainters Partition Problem (With Solution) Problem Statement Given n paint boards, of length {a1, a2, …., an}, and k painters, find the minimum…July 24, 2023 Read More
4 min Coding ProblemsRod Cutting Problem Problem Statement Given a rod of length n and array prices of length n denoting the cost of…July 24, 2023 Read More
9 min Coding ProblemsN Queen Problem Problem Statement Given an NxN Chessboard, we have to place N Queens such that they do not attack…July 24, 2023 Read More
4 min Coding ProblemsDijkstra’s Shortest Path Algorithm Problem Statement You are given an undirected graph ( assume with N nodes and M edges) and each…July 24, 2023 Read More
3 min Coding ProblemsLowest Common Ancestor The Lowest Common Ancestor of two nodes is the lowest node that has both nodes as descendants. Problem…July 24, 2023 Read More
4 min Coding ProblemsRemove Loop in Linked List Problem Statement Given a linked list. If the linked list contains a loop, return True and remove the…July 18, 2023 Read More
3 min Coding ProblemsReverse a Linked List Problem Statement Given a pointer to the head node of a linked list, the task is to reverse…July 4, 2023 Read More
4 min Coding ProblemsHamiltonian Path Problem Problem Statement: Given an undirected graph. The task is to print all the Hamiltonian cycles present in the…June 30, 2023 Read More
4 min Coding ProblemsBalanced Binary Tree Problem Statement Given a binary tree, determine if is height-balanced. Height-Balanced: A binary tree is said to be…June 30, 2023 Read More