Mastering LeetCode 167: Two Sum II – Input Array Is Sorted
When I first looked at Two Sum II, my initial thought was to use the same brute-force approach as the classic Two Sum problem—check every possible pair. It works, but as expected, it isn't efficient f
ankitsingh2003.hashnode.dev4 min read