Python · Lesson 13.3 · Pro
Dictionary tricks
Turn slow nested loops into fast single passes by remembering what you've seen.
In this lesson
- Two numbers that add up to a target
- Find duplicates
- Anagrams
- The most frequent item
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.