Backtracking and Greedy

Explore every choice with backtracking when you must, and spot when one greedy choice at each step is enough.

  1. 01

    Subsets

    • medium
    • Code
  2. 02

    Permutations

    • medium
    • Code
  3. 03

    Generate Parentheses

    • medium
    • Code
  4. 04

    Combination Sum

    • medium
    • Code
    • Pro
  5. 05

    Jump Game

    • medium
    • Code
  6. 06

    Gas Station

    • medium
    • Code
  7. 07

    Task Scheduler

    • medium
    • Code
    • Pro
  8. 08

    N-Queens Count

    • hard
    • Code
    • Pro