Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CCCshengjiang/algorithm
/ main
Method
main
data-structure-algorithm/src/cn/cwblue/dp/Hanoi.java:9–11 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
7
*/
8
public
class
Hanoi {
9
public
static
void
main(String[] args) {
10
hanoi(3);
11
}
12
13
public
static
void
hanoi(
int
n) {
14
if
(n == 0) {
Callers
nothing calls this directly
Calls
1
hanoi
Method · 0.95
Tested by
no test coverage detected