Two Sum (Edge-Case-Heavy)

Problem

A Two Sum variant where catching edge cases and testing is the real bar.

Example

[3,3], target=6 -> [0,1]

Constraints

  • Duplicates, negatives, empty input

What to look for

Clarity, edge cases, and running your own tests matter more than the cleverest solution.

added …
LeaderboardSalaryAccount