Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MolinDeng/Princeton-algs4
/ index
Method
index
LabEnv/10Lab/CircularSuffixArray.java:91–94 ·
view source on GitHub ↗
(int i)
Source
from the content-addressed store, hash-verified
89
90
// returns index of ith sorted suffix
91
public
int
index(
int
i) {
92
if
(i < 0 || i >= n) throw
new
IllegalArgumentException();
93
return
index[i];
94
}
95
96
// unit testing (required)
97
public
static
void
main(String[] args) {
Callers
2
transform
Method · 0.95
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected