## Number of Pairs

Problem Statement Given two integer arrays A[] and B[] of size N and M respectively. The task is…

Browsing Tag# Brute Force Approach

10 posts

Problem Statement Given two integer arrays A[] and B[] of size N and M respectively. The task is…

January 4, 2024

Problem Statement Given a staircase of N steps you can either climb 1 or 2 steps at a…

January 4, 2024

Problem Statement Given a list of prices of a stock for N days. The task is to find…

January 2, 2024

Problem Statement Given a string S, find the common palindromic sequence ( A sequence that does not need…

January 2, 2024

Problem Statement Given a set of N items each having value V with weight W and the total…

January 2, 2024

Problem Statement Given an array A[], find the next greater elementG[i] for every element A[i] in the array.The…

January 2, 2024

Problem Statement Graph colouring problem involves assigning colours to certain elements of a graph subject to certain restrictions…

October 31, 2023

Problem Statement Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i,…

August 11, 2023

Problem Statement Given the heads of two linked lists A and B. The task is to return the…

June 8, 2022

Minimum Jumps To Reach End of an Array Given an array of non-negative integers, A, of length N.…

June 15, 2022