Given a string, find whether it has any permutation of another string. Need to be efficient
Anonymous
public boolean test(String main, String sub){ char[] a = main.toCharArray(); char[] b = sub.toCharArray(); char[] c = sub.toCharArray(); Arrays.sort(b); for(int i = 0; i
Check out your Company Bowl for anonymous work chats.