5 min Coding Problems Graph Coloring Problem Problem Statement Graph colouring problem involves assigning colours to certain elements of a graph subject to certain restrictions… October 31, 2023 Read More
3 min Coding Problems Container 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
4 min Coding Problems Intersection of Two Linked Lists Problem Statement Given the heads of two linked lists A and B. The task is to return the… June 8, 2022 Read More
3 min Coding Problems Stock Span Problem Problem Statement Given a list of prices of a stock for N days. The task is to find… November 11, 2021 Read More
5 min Coding Problems Next Greater Element Problem Statement Given an array A[], find the next greater elementG[i] for every element A[i] in the array.The… October 25, 2021 Read More
4 min Coding Problems Minimum Number of Jumps Minimum Jumps To Reach End of an Array Given an array of non-negative integers, A, of length N.… June 15, 2022 Read More
3 min Coding Problems Climbing Stairs Problem Problem Statement Given a staircase of N steps and you can either climb 1 or 2 steps at… June 15, 2022 Read More
4 min Coding Problems Longest Palindromic Subsequence (With Solution) Problem Statement Given a string S, find the common palindromic sequence ( A sequence that does not need… October 21, 2021 Read More
4 min Coding Problems Number of Pairs Problem Statement Given two integer arrays A[] and B[] of size N and M respectively. The task is… October 13, 2021 Read More
3 min Coding Problems Fractional Knapsack Problem Problem Statement Given a set of N items each having value V with weight W and the total… October 13, 2021 Read More