MCPcopy
hub / github.com/gyoogle/tech-interview-for-developer / swap

Method swap

Algorithm/code/Heap.java:57–61  ·  view source on GitHub ↗
(int a, int b)

Source from the content-addressed store, hash-verified

55 }
56
57 static void swap(int a, int b) {
58 int temp = arr[a];
59 arr[a] = arr[b];
60 arr[b] = temp;
61 }
62}

Callers 2

addMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected