kaustubhgupta / Hacktoberfest

This is for the information that the repository has been excluded by the Hacktoberfest team from the event. This was done to maintain the quality standards and promote good quality open source contributions.
MIT License
55 stars 277 forks source link

Tower of Hanoi : A mathematical puzzle [Asked in FAANG Interview] #652

Closed ankit-95 closed 3 years ago

ankit-95 commented 3 years ago

Description

This Problem requires you to move disks from Stand A to Stand C where Stand B is a helper. Stand A contains some disks as which are required to be moved to Destination C.

Additional context

Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:

  1. Only one disk can be moved at a time.
  2. Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack i.e. a disk can only be moved if it is the uppermost disk on a stack.
  3. No disk may be placed on top of a smaller disk.

Important Checklist

Languages and Assignees:

Notes

I have read the CODE_OF_CONDUCT.md and CONTRIBUTING.md. Please assign the issue to me.

ankit-95 commented 3 years ago

@kaustubhgupta. Please assign this issue to me.

hackgone commented 3 years ago

can i work on it?

ShreyaDayma-cse commented 3 years ago

I would like to contribute in this

kaustubhgupta commented 3 years ago

@hackgone @ShreyaDayma-cse language?

hackgone commented 3 years ago

Java

kaustubhgupta commented 3 years ago

Java

Choose languages that are not taken by anybody else

ShreyaDayma-cse commented 3 years ago

@hackgone @ShreyaDayma-cse language?

Java

aastha0326 commented 3 years ago

please assign this to me in python

ShreyaDayma-cse commented 3 years ago

I will do it in C++

ankit-95 commented 3 years ago

@kaustubhgupta : I have created the pull Request #669 which will close this issue for Java.

kaustubhgupta commented 3 years ago

I will do it in C++

done