Var sparePeg = hanoi.getSparePeg(fromPeg, toPeg) īut despite all that, even though it only seems to ask for the solveHanoi() to be filled out with the parameters, it wont progress. You can find the spare peg by using the getSparePeg function.Ī call to hanoi.getSparePeg(peg1,peg2) returns the remaining peg that isn't peg1 or peg2. Options and procedures in CasaXPS have been developed in conjunction with numerous laboratories working with XPS spectra acquired using almost every instrument available. move (numDisks - 1) disks to the spare peg. CasaXPS represents the state-of-the-art in XPS spectral analysis. Make a recursive function call to move the disks sitting on top of the bottom disk on the fromPeg to the spare peg, i.e. Posting here really about the(just prior to this page) stage 2 Challenge Solve hanoi recursively (no place to put questions on that page).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |