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

Method main

Java/Recursion/Permutation.java:21–28  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

19 }
20 }
21 public static void main(String args[]) {
22 Scanner I = new Scanner(System.in);
23 System.out.println("ENTER A STRING");
24 String s = I.nextLine();
25 System.out.println("Given Below are all the permutations of the string");
26 permutation(s, 0);
27 I.close();
28 }
29}
30// Time Complexity : N * N!
31/*

Callers

nothing calls this directly

Calls 1

permutationMethod · 0.95

Tested by

no test coverage detected