MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / swap

Method swap

Java/Leetcode/Leetcode628.java:29–33  ·  view source on GitHub ↗
(int[] arr, int a, int b)

Source from the content-addressed store, hash-verified

27
28
29 static void swap(int[] arr, int a, int b){
30 int temp=arr[a];
31 arr[a]=arr[b];
32 arr[b]=temp;
33 }
34
35}

Callers 1

productMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected