Php > Miscellaneous
Towers of Hanoi
Towers of Hanoi 0) { $using = 6 - ($from + $to); hanoi(--$plates, $from, $using); print "Move plate from $from to $to
"; $from = $using; } } //Arguments: No of plates, From stick(1,2 or 3), // To stick(1,2 or 3; except From stick) hanoi(5, 1, 3); ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage