The famous Towers of Hanoi problem has an elegant solution through recursion. In the problem, three disk A, B and C exist. ‘n’ disks of different diameters are placed on pillar A.
Read this post on loserengineer.com