Brian Zhang's blog

Statistics and other topics

LeetCode Interview Prep

Posted Apr 12, 2025 · 1 min read

This is a backfill note from 2019-09-09. In 2019, I mentored a college student who was applying for computer science internships. I helped source LeetCode problems that I thought were interesting; here is the list I came up with.

(It looks like the numbering has changed since I compiled this list.)

LeetCode interview prep

LinkedList

  1. Add Two Numbers

  2. Merge Two Sorted Lists

  3. Remove Duplicates from Sorted List II

  4. Remove Duplicates from Sorted List

  5. Linked List Cycle

Binary Tree

  1. Binary Tree Inorder Traversal

  2. Maximum Depth of Binary Tree

  3. Convert Sorted Array to Binary Search Tree

  4. Balanced Binary Tree

  5. Binary Tree Preorder Traversal

  6. Binary Tree Postorder Traversal

  7. Diameter of Binary Tree

  8. Binary Search Tree to Greater Sum Tree

Hash Table

  1. Two Sum

  2. Single Number

  3. Happy Number

Stack / Queue

  1. Valid Parentheses

  2. Rotting Oranges

Dynamic Programming

  1. Maximum Subarray

  2. Climbing Stairs

Miscellaneous

  1. Reverse Integer

  2. Palindrome Number

  3. Roman to Integer

  4. Longest Common Prefix

  5. Remove Duplicates from Sorted Array

  6. Search Insert Position

  7. Add Binary

Good Ones We Didn’t Get To

  1. Best Time to Buy and Sell Stock

  2. Surrounded Regions

  3. Valid Anagram

  4. Employee Importance

  5. Min Cost Climbing Stairs

  6. Open the Lock

  7. Sliding Puzzle

  8. K Closest Points to Origin

comments powered by Disqus