What is Framework?
The term ‘framework’, in general, refers to a basic structure that serves as support fo…
Difference Between Git Merge and Git Merge --no-ff
Today, Git is widely adopted as a version control system. It is used for the efficient management o…
Print all triplets that form a geometric progression
Problem Given a sorted array of distinct positive integers, print all triplets that form Geometr…
Reverse every consecutive m-elements of a subarray
Problem Given an array, reverse every sub-array formed by consecutive m elements. Sample Inpu…
Maximum Product Subset Problem
Problem Given array a, we have to find the maximum product possible with the subset of elements …
4–Sum Problem | Quadruplets with a given sum
Problem The goal is to count all the quadruplets having a target sum S. Sample Input [2,…
Find equilibrium index of the array
Problem Calculate the equilibrium index of an array of integers. The equilibrium is the index…
Find the smallest window in an array sorting which will make the entire array sorted
Problem Given an integer array nums, identify one continuous subarray that, if just this subarra…
Decode an array constructed from another array
Problem There is a hidden integer array arr that consists of n non-negative integers. It was enc…
Sort an almost sorted array where only two elements are swapped
Problem How can an almost-sorted array with only two members swapped be effectively sorted? S…
Find minimum sum of a subarray of size k
Problem Given an array of integers and a number k, find the minimum sum of a subarray of size k.…
Find maximum sum path involving elements of given arrays
Problem Given two sorted arrays, where the arrays may share some elements. Find the largest sum …