Uh, removethisandtherearethreeplacesyoucanputthedisks, andthegoalistomoveallthedisksfromherefrom a to C, andeachtimeyoucanonlymoveoneoffthediscslikethis.
Andtheotherholeisyoucanalwaysonlyput a smallerjustonthebiggerthistreecannotputthisyear.
If I couldn't solveitwithonedisclisandthis, wecanjustliedownas a personputhomeokay?
Andso I'm defining a functioncalledHanoi, whichhasfourperimetersas a numberoffthisandthenthenameofftheformpositionthenameoffthepaperpositionandthenameoffthetwooffthetarget.
Okay, now, whatwastheidea.
Firstofall, I wanttosolvetheproblemfor n miners.
OnethismoveandMiloswondersfromformtoviaandthistimeusingmytargetMyteaas a serialdepositions, I sayHannahLeeandminewasone.
I moveformformviatwotoagewithhelp.
Okay?
Andnow I'm justmovingonediscfrom a twoseason.
I'm usingmymovefunctionfromfromTrue.
Andfinally I moveandminerswonderswhich I knowathelpOppositiontools A topositionusingformthistime a sockserial.
Here's a helper.
SoHanoiSowe'removingformusthave a positionusingthepronepositiontothetwopositionand I onlytosayifyouse n minusonediskssoafterthelastmovehere.
Soit's turnedout.
YouseeHanoifor a while, I'llbetoseeandwhat's goingtohappen.
Oh, it's a transformerAndforgetit, becausenowMmm.
Did I getstuckwith a 333 thingslikefood.
Wasitnormalthateachtimeitreducesthenumberoffthis, I havenowaytostartNo.