Level 5

Backtracking

Previous Next
  • 1. Recursion basics - using factorial
  • 2. Complexity analysis of recursive programs
  • 3. Why recursion is not always good
  • 4. Time Complexity analysis of recursion
  • 5. Space complexity analysis of recursion
  • 6. Backtracking
  • 7. Backtracking Pseudocode
Subsets
Problem Score Companies Time Status
Subset 250 51:17
Combinations 300 36:02
Combination Sum 300 49:47
Combination Sum II 300 33:04
Subsets II 300 31:26
Bruteforce builder
Problem Score Companies Time Status
Letter Phone 250 45:25
Palindrome Partitioning 300 55:06
Generate all Parentheses II 350
42:38
Pruned builder
Problem Score Companies Time Status
Palindrome Partitioning 300 55:06
Generate all Parentheses II 350
42:38
NQueens 550 60:25
Sudoku 700 57:06
Permutations
Problem Score Companies Time Status
Permutations 350 32:52
Maths and backtracking
Problem Score Companies Time Status
Gray Code 350
47:25
Kth Permutation Sequence 350 71:21
Game solving
Problem Score Companies Time Status
NQueens 550 60:25
Sudoku 700 57:06