Find two non-overlapping pairs having the same sum in an array

Find two non-overlapping pairs having the same sum in an array

Problem Given an unsorted array of integers. The task is to find any two non-overlapping pairs w…

Find a pair with a minimum absolute difference in an array

Find a pair with a minimum absolute difference in an array

Problem Given an unsorted array, find the minimum difference between any pair in a given array a…

Find the minimum index of a repeating element in an array

Find the minimum index of a repeating element in an array

Problem Given an array of integers, find the first repeating element in it. We need to find the …

Find triplet having maximum product in an array

Find triplet having maximum product in an array

Problem Find 3 numbers from the array such that their product is maximum. Sample Input […

Mountain Array

Mountain Array

Problem Given an array of integers, check if it is a mountain array or not. An array is called a…

Difference Between ArrayList and LinkedList

Difference Between ArrayList and LinkedList

The list is an abstract data type available in functional programming languages that stores ordered…

Count the number of strictly increasing subarrays in an array

Count the number of strictly increasing subarrays in an array

Problem Given an array, count the total number of strictly increasing subarrays in it. Sample…

Shuffle an array according to the given order of elements

Shuffle an array according to the given order of elements

Problem Given two integer arrays of the same size, arr[] and index[], reorder elements in arr[] …

Find minimum sum of a subarray of size k

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.…

Subarray with Sum k

Subarray with Sum k

Problem Given an unsorted array arr of size N, find a contiguous subarray that adds to a given n…

Maximum Sum Circular Subarray

Maximum Sum Circular Subarray

Problem Given a circular integer array nums of length n, return the maximum possible sum of a no…

Find Maximum Subarray Sum

Find Maximum Subarray Sum

Problem The objective is to find the elements of a continuous subarray nums of integers that hav…