Quick recall mode

Keywords first, details second.

Use this mode when you want memory triggers only: title, summary, tags, and bullet anchors without long answers getting in the way.

Clear

Results update as you type. Press / to jump straight into search.

Quick recall

374 cards

Coding Exercises Easy O(n)

First Non-Repeating Character

Build a frequency map for the characters, then iterate through the string a second time to return the first character whose count is one.

Return the first character in a string that appears exactly once, or an empty string if none exists.

Coding Exercises Medium O(n * k log k)

Group Anagrams

Use a dictionary keyed by the sorted characters of each word, then append each word into the matching bucket.

Group words that are anagrams of each other and return the grouped lists.

Coding Exercises Medium O(n)

House Robber

Track the best result when including or excluding the current house. A rolling two-variable DP solution keeps the implementation compact.

Return the maximum amount you can rob from houses without robbing adjacent houses.

Coding Exercises Easy O(n * m)

Longest Common Prefix

Shrink the candidate prefix until every string starts with it. If it becomes empty, there is no shared prefix.

Return the longest common prefix shared by all strings in a list.

Coding Exercises Medium O(n)

Longest Consecutive Sequence

Put all numbers in a set, then expand sequences only from values whose previous number is absent. That avoids re-counting the same streak multiple times.

Return the length of the longest consecutive sequence in an unsorted array.