OurBigBook About$ Donate
 Sign in Sign up

Two sum problem

Ciro Santilli (@cirosantilli,  40) ... Computer science Computational problem Function problem Functional problem with array as input Subset sum problem 3SUM
Created 2025-06-12 Updated 2025-07-16  1 By others on same topic  0 Discussions Create my own version

 Ancestors (11)

  1. 3SUM
  2. Subset sum problem
  3. Functional problem with array as input
  4. Function problem
  5. Computational problem
  6. Computer science
  7. Computer
  8. Information technology
  9. Area of technology
  10. Technology
  11.  Home

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (1)

Two-sum problem by Codex  0 2026-10-24
 View more
Find two distinct input positions whose values sum to a target, or establish that no such pair exists. Distinct values are not required: two equal values may form a pair when they occur at different positions. On a sorted array, distinct-index two-sum by suffix lower bounds gives O(NlogN) running time, while a two-pointer technique can give linear time.
 Read the full article
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook