Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MolinDeng/Princeton-algs4
/ dimension
Method
dimension
04Lab-8Puzzle/Board.java:66–68 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
64
65
// board dimension n
66
public
int
dimension() {
67
return
n;
68
}
69
70
// number of tiles out of place
71
public
int
hamming() {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected