MCPcopy Create free account
hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / main

Method main

06. Sorting/CycleSortInJava.java:3–9  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1import java.util.Arrays;
2public class CycleSort {
3 public static void main(String[] args) {
4
5 int[] arr= {5,4,3,2,1};
6 cycleSort(arr);
7 System.out.println(Arrays.toString(arr));
8
9 }
10 static void cycleSort(int[] arr)
11 {
12 int i = 0;

Callers

nothing calls this directly

Calls 2

cycleSortMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected