Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA
/ swap
Method
swap
06. Sorting/CycleSortInJava.java:23–29 ·
view source on GitHub ↗
(int[] arr,int a, int b)
Source
from the content-addressed store, hash-verified
21
22
}
23
static
void
swap(
int
[] arr,
int
a,
int
b)
24
{
25
int
temp;
26
temp=arr[a];
27
arr[a]=arr[b];
28
arr[b]=temp;
29
}
30
}
Callers
1
cycleSort
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected