1v1Code

medium · javascript

Optimize the Loop

The function counts pairs that sum to target. Make it faster than nested loops.

Log in to open the workspace