Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiwarishashwat/InterviewCodes
/ main
Method
main
StringPermutations.java:3–7 ·
view source on GitHub ↗
(String args[])
Source
from the content-addressed store, hash-verified
1
import
java.util.*;
2
class
StringPermutation {
3
public
static
void
main(String args[])
4
{
5
String s=
"ABC"
;
6
permute(0,s);
7
}
8
public
static
String swap(String s,
int
a,
int
b)
9
{
10
char ch[] = s.toCharArray();
Callers
nothing calls this directly
Calls
1
permute
Method · 0.95
Tested by
no test coverage detected