6 kyu

Hanoi Tower Array

Description:

Given the number n, return a string which shows the minimum number of moves to complete the tower of Hanoi consisting of n layers. Tower of Hanoi : https://en.wikipedia.org/wiki/Tower_of_Hanoi

Example - 2 layered Tower of Hanoi

Input: n=2

Start [[2, 1], [], []]

Goal [[], [], [2, 1]]

Expected Output : '[[2, 1], [], []]\n[[2], [1], []]\n[[], [1], [2]]\n[[], [], [2, 1]]'

Algorithms

Similar Kata:

Stats:

CreatedNov 8, 2017
PublishedNov 8, 2017
Warriors Trained529
Total Skips76
Total Code Submissions494
Total Times Completed102
Python Completions102
Total Stars12
% of votes with a positive feedback rating85% of 41
Total "Very Satisfied" Votes31
Total "Somewhat Satisfied" Votes8
Total "Not Satisfied" Votes2
Total Rank Assessments5
Average Assessed Rank
5 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • jamad Avatar
  • hobovsky Avatar
  • Hippunky Avatar
  • saudiGuy Avatar
Ad