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

Method swap

Java/Leetcode/Leetcode645.java:36–40  ·  view source on GitHub ↗
(int[] arr, int a, int b)

Source from the content-addressed store, hash-verified

34 }
35
36 static void swap(int[] arr, int a, int b){
37 int temp=arr[a];
38 arr[a]=arr[b];
39 arr[b]=temp;
40 }
41}

Callers 1

disappearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected