In this video, I'm solving one of the most popular problems on leetcode 2sum using typescript. First I implemented a brute-force solution then optimized time complexity using a hash-map.
#leetcode #programming #2sum #algorithm #typescript #javascript