# Category: Sorting

## Find two numbers with maximum sum formed by array digits

Given an array of integers between 0 to 9, find two numbers with maximum sum formed by using all digits of the array. The difference in number of digits of the two numbers should be ± 1.

## Find a Triplet having Maximum Product in an Array

Given an array of integers, find a triplet having maximum product in the array.

## Difference between sort() and parallelSort() method of Arrays class in Java

The Arrays class is a member of the Java Collections Framework and contains various static utility methods for array manipulation. In this post, we will discuss the difference between sort() and parallelSort() method of the Arrays class in Java.

## Iterative Merge Sort Algorithm (Bottom-up Merge Sort)

In this post, we will see how to sort an array of integers using iterative merge sort algorithm.

## Find all distinct combinations of given length – Part 2

Given an array of integers, find all distinct combinations of given length.

## Print all quadruplets with given sum | 4-sum problem extended

Given an unsorted array of integers, print all distinct four elements tuple (Quadruplets) in it having given sum.

## 4 sum problem | Quadruplets with given sum

Given an unsorted array of integers, check if it contains four elements tuple (Quadruplets) having given sum.

## Sort an array in one swap whose two elements are swapped by mistake

Given an array where all its elements are sorted except two elements which were swapped, sort the array in linear time. Assume there are no duplicates in the array.

## How to sort a vector of pairs in C++

In this post, we will discuss how to sort a vector of pairs in C++.

## Quick sort algorithm using Hoare’s Partitioning scheme

Implement Quick sort algorithm using Hoare’s Partitioning scheme.

## Sort a vector in C++

In this post, we will discuss how to sort a vector of integers in C++ in ascending order.

## Count Sort – C++ and Java Implementation

Given an array of integers, effectively sort it using count sort algorithm.