## Sort the array in a given index range

Given an array arr[] of N integers and an index range [a, b]. The task is to sort the array in this given index range… Read More »

- Minimum number of swaps required to sort an array | Set 2
- Count number of triplets with product equal to given number with duplicates allowed
- Sort only non-prime numbers of an array in increasing order
- Longest subsequence whose average is less than K
- Longest Common Prefix Matching | Set-6
- Maximise the number of toys that can be purchased with amount K
- Sudo Placement | Placement Tour
- Possible number of Rectangle and Squares with the given set of elements
- Find the largest number that can be formed with the given digits
- Check if array can be sorted with one swap
- Count number of triplets in an array having sum in the range [a, b]
- Java 8 | Arrays parallelSort() method with Examples
- Find Sum of pair from two arrays with maximum sum
- Sort an array where a subarray of a sorted array is in reverse order
- Cut all the rods with some length such that the sum of cut-off length is maximized
- Find the Second Largest Element in a Linked List
- Check if Queue Elements are pairwise consecutive | Set-2
- Check whether an array can be fit into another array rearranging the elements in the array
- Size of the smallest subset with maximum Bitwise OR
- Sort the array in a given index range
- Minimum number of prefix reversals to sort permutation of first N numbers
- Rearrange all elements of array which are multiples of x in decreasing order
- How to sort an ArrayList in Ascending Order in Java
- Find the k-th smallest divisor of a natural number N
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- Minimum inverting factor in an array
- How to sort an ArrayList in Descending Order in Java
- String with frequency of characters in Lucas Sequence
- Sort an array of string of dates in ascending order
- Sorting integer data from file and calculate execution time

Given an array arr[] of N integers and an index range [a, b]. The task is to sort the array in this given index range… Read More »

Given an array of strings dates[], the task is to sort these dates in ascending order. Note: Each date is of the form dd mmm… Read More »

Given an array of integers arr[] and an integer x, the task is to sort all the elements of the array which are multiples of… Read More »

Given an array of positive integers. The task is to find the size of the smallest subset such that the Bitwise OR of that set… Read More »

Given an array containing N elements. Find if it is possible to sort it in non-decreasing order using atmost one swap. Examples: Input : arr[]… Read More »

Given an array of integers and a number K. The task is to sort only those elements of the array which yields remainder P upon… Read More »

Given a string ‘str’ containing lowercase English alphabets, the task is to find whether the frequencies of the characters of the string are in Lucas… Read More »

Prerequisite: Selection Sort In this article, we are going to apply selection sort algorithm, in which the source of input is A FILE CONTAINING 10000… Read More »

Given an unsorted ArrayList, the task is to sort this ArrayList in ascending order in Java. Examples: Input: Unsorted ArrayList: [Geeks, For, ForGeeks, GeeksForGeeks, A… Read More »

Given an unsorted ArrayList, the task is to sort this ArrayList in descending order in Java. Examples: Input: Unsorted ArrayList: [Geeks, For, ForGeeks, GeeksForGeeks, A… Read More »

Given an array of N integers. The task is to print the sorted array such that all numbers that are prime stay in the same… Read More »

Given two arrays of positive and distinct integers. The task is to find a pair from the two arrays with maximum sum. Note: The pair… Read More »

You’re given a number N and a number K. Our task is to find the kth smallest divisor of N. Examples: Input : N =… Read More »

Given a Linked list of integer data. The task is to write a program that efficiently finds the second largest element present in the Linked… Read More »

Given a Queue of integers. The task is to check if consecutive elements in the queue are pairwise consecutive. Examples: Input: 1 2 5 6… Read More »