Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/careercup/ctci
/ print
Method
print
java/Chapter 3/Question3_4/Tower.java:30–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
}
29
30
public
void
print() {
31
System.out.println(
"Contents of Tower "
+ index() +
": "
+ disks.toString());
32
}
33
34
public
void
moveDisks(
int
n, Tower destination, Tower buffer){
35
if
(n > 0) {
Callers
2
moveDisks
Method · 0.95
main
Method · 0.45
Calls
2
index
Method · 0.95
toString
Method · 0.45
Tested by
no test coverage detected