Create a function to find all pairs in an array that add up to a specific target.
MediumProblem Statement
Create a function to find all pairs in an array that add up to a specific target.
Sample Input
array = [1, 2, 3, 4, 5], target = 6
Sample Output
[ [ 1, 5 ], [ 2, 4 ] ]
Limits
Time: 2s · Memory: 256 MB