Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/careercup/ctci
/ rotate
Method
rotate
java/Chapter 14/Question14_6/CircularArray.java:20–22 ·
view source on GitHub ↗
(int shiftRight)
Source
from the content-addressed store, hash-verified
18
}
19
20
public
void
rotate(
int
shiftRight) {
21
head = convert(shiftRight);
22
}
23
24
public
T get(
int
i) {
25
if
(i < 0 || i >= items.length) {
Callers
1
main
Method · 0.95
Calls
1
convert
Method · 0.95
Tested by
no test coverage detected