@@ -0,0 +1,618 @@
+import java.util.Arrays;%0A%0Apublic class UniqueTwo %7B%0A  %0A  public static void main(String%5B%5D args) %7B%0A    String word = args%5B0%5D;%0A    System.out.println(hasAllUnique(word));%0A  %7D%0A%0A  public static boolean hasAllUnique(String word) %7B%0A    if (word == null %7C%7C word.equals(%22%22)) %7B%0A      return false; // assumption that invalid strings aren't accepted%0A    %7D%0A    char%5B%5D letters = word.toCharArray();%0A    Arrays.sort(letters); // bottleneck operation, O(nlog(n)) time, in place quicksort%0A    for (int i = 1; i %3C letters.length; i++) %7B%0A      if (letters%5Bi-1%5D == letters%5Bi%5D) %7B%0A        return false;%0A      %7D%0A    %7D%0A    return true;%0A  %7D%0A%7D

ch1, q1