refer to the last 2 successful submissions on my codechef site for the permut problem
https://www.codechef.com/problems/PERMUT2
As you can see, the only difference is use of int[] in place of string[] and hence comparing the int[] with each other as opposed to string[] with each other.
one with int[] is ~40% faster than with String[]
https://www.codechef.com/problems/PERMUT2
As you can see, the only difference is use of int[] in place of string[] and hence comparing the int[] with each other as opposed to string[] with each other.
one with int[] is ~40% faster than with String[]