Skip to main content

7 docs tagged with "Sorting"

View all tags

3Sum

Given an array of integers, find all unique triplets that sum to zero.

3Sum Closest

Given an array of integers, find three distinct numbers whose sum is as close as possible to a given target value.

4Sum

Find all unique quadruplets in a given array of integers that sum up to a specific target value.

Merge Intervals

Merge overlapping intervals in a list and return the non-overlapping intervals that cover all inputs

Two Sum

Given an array of integers and a target integer, find the indices of two numbers that add up to the target.