Skip to content
LEETFLIX

method

Backtracking — animated LeetCode walkthroughs

LeetCode problems solved with Backtracking. Browse the complete tag, then watch the algorithm move — step-by-step animation, Python and Go.

114 problems · 94 animated · 20 locked

Full Backtracking index

  1. 17Letter Combinations of a Phone NumberWatch
  2. 22Generate ParenthesesWatch
  3. 37Sudoku SolverWatch
  4. 39Combination SumWatch
  5. 40Combination Sum IIWatch
  6. 46PermutationsWatch
  7. 47Permutations IIWatch
  8. 51N-QueensWatch
  9. 52N-Queens IIWatch
  10. 77CombinationsWatch
  11. 78SubsetsWatch
  12. 79Word SearchWatch
  13. 89Gray CodeWatch
  14. 90Subsets IIWatch
  15. 93Restore IP AddressesWatch
  16. 95Unique Binary Search Trees IIWatch
  17. 113Path Sum IIWatch
  18. 126Word Ladder IIWatch
  19. 131Palindrome PartitioningWatch
  20. 140Word Break IIWatch
  21. 212Word Search IIWatch
  22. 216Combination Sum IIIWatch
  23. 254Factor CombinationsLocked
  24. 257Binary Tree PathsWatch
  25. 267Palindrome Permutation IILocked
  26. 282Expression Add OperatorsWatch
  27. 291Word Pattern IILocked
  28. 294Flip Game IILocked
  29. 301Remove Invalid ParenthesesWatch
  30. 306Additive NumberWatch
  31. 320Generalized AbbreviationLocked
  32. 351Android Unlock PatternsLocked
  33. 357Count Numbers with Unique DigitsWatch
  34. 401Binary WatchWatch
  35. 411Minimum Unique Word AbbreviationLocked
  36. 425Word SquaresLocked
  37. 465Optimal Account BalancingLocked
  38. 473Matchsticks to SquareWatch
  39. 489Robot Room CleanerLocked
  40. 491Non-decreasing SubsequencesWatch
  41. 494Target SumWatch
  42. 526Beautiful ArrangementWatch
  43. 638Shopping OffersWatch
  44. 67924 GameWatch
  45. 681Next Closest TimeLocked
  46. 691Stickers to Spell WordWatch
  47. 698Partition to K Equal Sum SubsetsWatch
  48. 756Pyramid Transition MatrixWatch
  49. 773Sliding PuzzleWatch
  50. 784Letter Case PermutationWatch
  51. 797All Paths From Source to TargetWatch
  52. 816Ambiguous CoordinatesWatch
  53. 842Split Array into Fibonacci SequenceWatch
  54. 949Largest Time for Given DigitsWatch
  55. 967Numbers With Same Consecutive DifferencesWatch
  56. 980Unique Paths IIIWatch
  57. 988Smallest String Starting From LeafWatch
  58. 996Number of Squareful ArraysWatch
  59. 1066Campus Bikes IILocked
  60. 1079Letter Tile PossibilitiesWatch
  61. 1087Brace ExpansionLocked
  62. 1088Confusing Number IILocked
  63. 1096Brace Expansion IIWatch
  64. 1215Stepping NumbersLocked
  65. 1219Path with Maximum GoldWatch
  66. 1238Circular Permutation in Binary RepresentationWatch
  67. 1239Maximum Length of a Concatenated String with Unique CharactersWatch
  68. 1240Tiling a Rectangle with the Fewest SquaresWatch
  69. 1255Maximum Score Words Formed by LettersWatch
  70. 1258Synonymous SentencesLocked
  71. 1286Iterator for CombinationWatch
  72. 1307Verbal Arithmetic PuzzleWatch
  73. 1415The k-th Lexicographical String of All Happy Strings of Length nWatch
  74. 1467Probability of a Two Boxes Having The Same Number of Distinct BallsWatch
  75. 1593Split a String Into the Max Number of Unique SubstringsWatch
  76. 1601Maximum Number of Achievable Transfer RequestsWatch
  77. 1655Distribute Repeating IntegersWatch
  78. 1718Construct the Lexicographically Largest Valid SequenceWatch
  79. 1723Find Minimum Time to Finish All JobsWatch
  80. 1774Closest Dessert CostWatch
  81. 1799Maximize Score After N OperationsWatch
  82. 1849Splitting a String Into Descending Consecutive ValuesWatch
  83. 1863Sum of All Subset XOR TotalsWatch
  84. 1947Maximum Compatibility Score SumWatch
  85. 1980Find Unique Binary StringWatch
  86. 1986Minimum Number of Work Sessions to Finish the TasksWatch
  87. 2002Maximum Product of the Length of Two Palindromic SubsequencesWatch
  88. 2014Longest Subsequence Repeated k TimesWatch
  89. 2044Count Number of Maximum Bitwise-OR SubsetsWatch
  90. 2048Next Greater Numerically Balanced NumberWatch
  91. 2056Number of Valid Move Combinations On ChessboardWatch
  92. 2065Maximum Path Quality of a GraphWatch
  93. 2151Maximum Good People Based on StatementsWatch
  94. 2152Minimum Number of Lines to Cover PointsLocked
  95. 2178Maximum Split of Positive Even IntegersWatch
  96. 2212Maximum Points in an Archery CompetitionWatch
  97. 2305Fair Distribution of CookiesWatch
  98. 2375Construct Smallest Number From DI StringWatch
  99. 2397Maximum Rows Covered by ColumnsWatch
  100. 2597The Number of Beautiful SubsetsWatch
  101. 2664The Knight’s TourLocked
  102. 2698Find the Punishment Number of an IntegerWatch
  103. 2708Maximum Strength of a GroupWatch
  104. 2767Partition String Into Minimum Beautiful SubstringsWatch
  105. 2850Minimum Moves to Spread Stones Over GridWatch
  106. 2992Number of Self-Divisible PermutationsLocked
  107. 3211Generate Binary Strings Without Adjacent ZerosWatch
  108. 3348Smallest Divisible Digit Product IIWatch
  109. 3376Minimum Time to Break Locks IWatch
  110. 3437Permutations IIILocked
  111. 3646Next Special Palindrome NumberWatch
  112. 3669Balanced K-Factor DecompositionWatch
  113. 3799Word Squares IIWatch
  114. 3955Valid Binary Strings With Cost LimitWatch