7 min Coding ProblemsWater Jug Problem Problem Statement Given two water jugs with capacities X and Y litres. Initially, both the jugs are empty.…August 18, 2023 Read More
4 min Coding Problems8 Queens Problem Given a 8 X 8 chessboard. The task is to place 8 queens on the board, such that…August 17, 2023 Read More
9 min Coding Problems0-1 Knapsack Problem Problem Statement Given a Knapsack/Bag with W weight capacity and a list of N items with given vi…August 17, 2023 Read More
3 min Coding ProblemsProducer Consumer Problem Problem Statement Producer-Consumer Problem is also known as the bounded buffer problem. The Producer-Consumer Problem is one of…August 14, 2023 Read More
3 min Coding ProblemsMerge Two Sorted Arrays Without Extra Space Problem Statement We are given two sorted arrays, our task is to merge two sorted arrays in a…August 14, 2023 Read More
3 min Coding ProblemsContainer With Most Water Problem Statement Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i,…August 11, 2023 Read More
5 min Coding ProblemsFinding The Number of Islands Problem Statement Given a matrix of size M x N, where ‘1’ represents land, while ‘0’ represents water.…August 11, 2023 Read More
4 min Coding ProblemsTravelling Salesman Problem (TSP) Problem Statement Travelling Salesman Problem (TSP)– Given a set of cities and the distance between every pair of…August 17, 2023 Read More
3 min Coding ProblemsDetect Loop in Linked List Problem Statement Given a linked list. Determine if the linked list has a cycle in it. A linked…July 31, 2023 Read More
4 min Coding ProblemsInorder Traversal Of A Binary Tree What is Inorder Traversal? It’s a technique of traversing over all nodes of the tree. In inorder traversal…July 25, 2023 Read More