DSA · Pattern drill

Which pattern is hiding here?

Knowing the patterns is half of it. Spotting which one a new problem is wearing is the other half.

Ten problems, one question each

You see what a problem asks, not its name. Pick the pattern you would reach for. After each answer you see the signals in the statement that point to it, which is the skill that turns a new problem into a familiar one.