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 Medium O(rows * cols)

Number of Islands

Scan the grid cell by cell. When you find unvisited land, increment the island count and run DFS or BFS to mark every connected land cell as visited.

Count how many islands of connected land exist in a grid of '1' and '0' values.

Coding Exercises Easy O(n)

Palindrome Check

Compare characters from the left and right ends while moving inward. Normalize case or strip non-alphanumeric characters only if the prompt requires it.

Determine whether a string reads the same forward and backward.

Coding Exercises Medium O(n)

Remove Nth Node From End

Use a dummy node, move the fast pointer n steps ahead, then move both fast and slow together until fast reaches the end. The slow pointer will be just before the node to remove.

Remove the nth node from the end of a linked list and return the head.

Coding Exercises Easy O(n)

Reverse String

Use slicing with a step of -1 for the shortest solution, or iterate from the end if the interviewer wants the mechanics.

Write a function that returns the input string reversed.

Coding Exercises Easy O(n)

Rotate Array

Normalize k by array length, then rebuild the order from the tail slice followed by the front slice.

Rotate an array to the right by k positions.

Coding Exercises Easy O(n)

Two Sum

Store each seen number in a dictionary keyed by value. For each new number, check whether target minus number has already appeared.

Return the indices of two numbers that add up to a target.

Coding Exercises Easy O(n)

Two Sum II (Sorted Array)

Start with one pointer at the left and one at the right. Move the left pointer rightward when the sum is too small and the right pointer leftward when the sum is too large.

Given a sorted array, return the indices of two numbers that add up to a target.