TL;DR Single-pass hash map lookup: store each number's index as you go, check for the complement before storing. O(n) time, O(n) space. The Problem Given an array of integers nums and an integer targe
Senior Software Engineer · Flutter, Go, K8s
Senior engineer (Flutter, Go, K8s). I build ESP32 gadgets and run a homelab, then write up the why behind them at iamshubham.dev.
Markdown supported · ⌘↵ to post
No responses yet.