LAUNCH SALE 50% off every pass

See plans →

Free sample week

Learn five DSA topics through daily lessons and practice, then revisit what you learned in a timed rehearsal.

35 to 45 minutes a day5 topics · 2 practice problems a day
New to programming? Start with the basics.
Day 2 / 745 min

Remember what you have seen

Use a set or map to answer a lookup without scanning the earlier values again.

Learn the concept

Answer "have I seen this before?" in expected constant time with a hash table, and compare substrings with polynomial hashes.

Open the lesson Watch Two Sum

Practice

  1. 01 · LeetCode
    Contains Duplicate
    LeetCode statement

    Contains Duplicate

    Loading the statement…

    Chapter practice
  2. 02 · LeetCode
    Two Sum
    LeetCode statement

    Two Sum

    Loading the statement…

    Chapter practice

Recall without notes

Trace Two Sum on [3, 3] with target 6. Explain why the lookup must happen before the insertion.

Day 2: Remember what you have seen.

Plan your next weeks

Choose your schedule and daily target in Study Sprints to preview a longer course with practice and review.

Esc
↑↓Move ↵Open Ctrl↵New tab >Actions ?Shortcuts

Keyboard shortcuts

Anywhere

Open search
CtrlKor /
Show these shortcuts
?
Close a window or menu
Esc

In search

Move through results
↑or ↓
Open the result
↵
Open in a new tab, or a problem on its judge
Ctrl↵
List actions only
>
Remove the filter
⌫

Go to

Learn
GthenL
Practice
GthenP
Assessments
GthenA
System design
GthenS
Companies
GthenC
My profile
GthenM
Today's quest
GthenT
Home
GthenH

Report a bug

Page