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 46:18
Combinations 300 31:45
Combination Sum 300 43:28
Combination Sum II 300 29:36
Subsets II 300 27:27
Bruteforce builder
Problem Score Companies Time Status
Letter Phone 250 42:41
Palindrome Partitioning 300 51:47
Generate all Parentheses II 350
39:26
Pruned builder
Problem Score Companies Time Status
Palindrome Partitioning 300 51:47
Generate all Parentheses II 350
39:26
NQueens 550 57:19
Sudoku 700 57:19
Permutations
Problem Score Companies Time Status
Permutations 350 30:03
Maths and backtracking
Problem Score Companies Time Status
Gray Code 350
43:21
Kth Permutation Sequence 350 72:14
Game solving
Problem Score Companies Time Status
NQueens 550 57:19
Sudoku 700 57:19
Click here to start solving coding interview questions