Find quadruplets with a given sum in an unsorted array
Filed under Royal Bank of Scotland
The question
Given an unsorted array and a target sum, find all quadruplets from the array whose sum equals the target sum and store them in a sorted array format.
No write-up yet. Related questions below have one.
Related Royal Bank of Scotland questions
Collected from public candidate posts and coding forums. Updated Nov 2026.