1. Two Sum - Leetcode - JavaScript Solution using HashMap - by Abu Saleh Faysal
I previously solved this problem using two for loops. However, that was not a very efficient way to solve this problem. So, this time I solved this problem using HashMap.
Solution:
Step 01: Hashmap is a set of key, value pairs. I declared a variable ...
abusalehfaysal.hashnode.dev2 min read