Data Structureds01_pair_sum

Pair Sum

12f1af83-390f-45b1-9526-022e71b4b1c1.cppC++
1// Loading code...

Selected Submission

100 / 100
0.044s
1520 KB
ArrayImplementation
Time Comp.
O(n log n + m * n)
Space Comp.
O(n)
Readability
6/10

"The code uses a vector to store the input array and performs a sorted search (two-pointer technique) to find pairs that sum up to a target number. The core data structure is an array (vector), and the algorithm employed is a variation of binary search."

History

AttemptPoints Time
Try #261008/20/2024
Try #2508/20/2024
Try #241008/20/2024
Try #2308/20/2024
Try #2208/20/2024
Try #2108/20/2024
Try #201008/20/2024
Try #19708/20/2024
Try #181008/20/2024
Try #171008/20/2024
Try #161008/20/2024
Try #151008/20/2024
Try #141008/20/2024
Try #13608/20/2024
Try #12708/20/2024
Try #1108/20/2024
Try #10708/20/2024
Try #908/20/2024
Try #8708/20/2024
Try #708/20/2024
Try #608/20/2024
Try #508/20/2024
Try #4708/20/2024
Try #3608/20/2024
Try #2608/20/2024
Try #1608/20/2024