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

Method swap

Java/Leetcode/Leetcode344.java:19–23  ·  view source on GitHub ↗
(char[] s,int a, int b)

Source from the content-addressed store, hash-verified

17 }
18
19 static void swap(char[] s,int a, int b){
20 char temp=s[a];
21 s[a]=s[b];
22 s[b]=temp;
23 }
24}

Callers 1

reverseStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected