the well known hanoi tower algorithm is as follow:
public static void hanoi(int n,int a,int b,int c)
(
if(n>0)
(
hanoi(n-1,a,c,b);
move(a,b);
hanoi(n-1,c,b,a);
)
)
my problem is : can we handle this algorithm in this method?
we can regard three places as one place...