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 43:53
Combinations 300 30:15
Combination Sum 300 41:00
Combination Sum II 300 29:27
Subsets II 300 26:53
Bruteforce builder
Problem Score Companies Time Status
Letter Phone 250 42:05
Palindrome Partitioning 300 50:38
Generate all Parentheses II 350
37:50
Pruned builder
Problem Score Companies Time Status
Palindrome Partitioning 300 50:38
Generate all Parentheses II 350
37:50
NQueens 550 56:20
Sudoku 700 56:22
Permutations
Problem Score Companies Time Status
Permutations 350 29:11
Maths and backtracking
Problem Score Companies Time Status
Gray Code 350
41:28
Kth Permutation Sequence 350 72:25
Game solving
Problem Score Companies Time Status
NQueens 550 56:20
Sudoku 700 56:22
Click here to start solving coding interview questions