Author name: Admin

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

2762. Continuous Subarrays

leetcode-potd

You are given a 0-indexed integer array nums. A subarray of nums is called continuous if: Let i, i + 1, …, jbe the indices in the subarray. Then, for

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

Overlapping Intervals

gfg-potd

Given an arrayof Intervals arr[][], where arr[i] = [starti, endi]. The task is to merge all of the overlapping Intervals. Examples: Input: arr[][] =

Scroll to Top