Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MolinDeng/Princeton-algs4
/ hamming
Method
hamming
LabEnv/04Lab/Board.java:71–73 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
69
70
// number of tiles out of place
71
public
int
hamming() {
72
return
hammingD;
73
}
74
75
// sum of Manhattan distances between tiles and goal
76
public
int
manhattan() {
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected