gfg-potd

Search in a sorted Matrix

gfg-potd

Given a strictly sorted 2D matrix mat[][] of size n x m anda number x. Find whether the number x is present in the matrix or not.Note:

Allocate Minimum Pages

gfg-potd

You are given an array arr[] of integers, where each element arr[i] represents the number of pages in the ith book. You also have

Aggressive Cows

gfg-potd

You are given an array with unique elements of stalls[],which denote the position of a stall. You are also given an

Peak element

gfg-potd

Given an array arr[] where no two adjacent elements are same, find the index of a peak element. An element is considered to be a peak if it

Merge Without Extra Space

gfg-potd

Given two sorted arrays a[] and b[] in non-decreasing order. Merge them in sorted order without using any extra space. Modify a so that it contains the

Non-overlapping Intervals

gfg-potd

Given a 2D array intervals[][] of representing intervals where intervals [i] = [starti, endi ]. Return the minimum number of intervals you need to remove to make

Insert Interval

gfg-potd

Geek has an array ofnon-overlapping intervals intervals where intervals[i] = [starti, endi] represent the start and the end of the ith event and intervals is sorted in ascending

Scroll to Top