Day 3 of My 30-Day DSA Journey — Hashing and Map/Set Patterns
1. Two Sum — LeetCode 1
Problem
Given an array of integers and a target, return the indices of two numbers whose sum equals the target.
Approach
For every number, I calculate the value I need:
needed
abi-blog.hashnode.dev6 min read