Author name: Admin

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[][] =

Count Inversions

gfg-potd

Given an array of integers arr[]. Find the Inversion Count in the array.Two elements arr[i] and arr[j] form an inversion if arr[i] > arr[j] and i

Find H-Index

gfg-potd

Given an integer array citations[], where citations[i] is the number of citations a researcher received for the ith paper. The task is to find the H-index. H-Index is

2337. Move Pieces to Obtain a String

leetcode-potd

You are given two strings start and target, both of length n. Each string consists only of the characters ‘L’, ‘R’, and ‘_’ where: The characters ‘L’ and ‘R’ represent pieces, where a piece ‘L’ can

Scroll to Top