Questions tagged [2sum]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
91 views

2-sum problem in C++

I'm a beginner at C++; all my previous programming experience is mainly through PLCs in industrial maintenance. I have to accept 10 integers and a target value, then print all the pairs that sum to ...
4
votes
3answers
508 views

Working 2sum solver

This is my first working 2sum solver. It works by finding the difference for our target in s to determine if that 2sum exists. ...