@@ -0,0 +1,1164 @@
+package com.varunsdave.ctci_01_01;%0A%0Aimport java.io.*;%0Aimport java.util.*;%0Aimport java.lang.*;%0A%0A%0A/**%0A *  @author Varun Dave%0A *  @version 0.1%0A *  %0A *  This code provides solution to a problem that asks to determine %0A *  whether a given string contains only unique chars. %0A *  %0A *  The space requirement for this solution is n for the length 128%0A *  The code is tested for ASCII character set only.%0A *  %0A *  %0A */%0Apublic class Solution %7B%0A%09%0A%09public static void main(String%5B%5D args) throws java.lang.Exception%7B%0A%09%09String pass_test = %22sample%22;%0A%09%09String fail_test = %22sample text%22; //should fail at double t%0A%09%09%0A%09%09%0A%09%09%0A%09%09System.out.println(%22the result from pass_test is : %22 + containsUniqueChars(pass_test));%0A%09%09System.out.println(%22the result from fail_test is : %22+ containsUniqueChars(fail_test));%0A%09%09%0A%09%7D%0A%09%0A%09private static boolean containsUniqueChars(String input_string)%7B%0A%09%09if (input_string.length()%3E128)%7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09%0A%09%09int %5B%5D char_occurences = new int %5B128%5D;%0A%09%09%0A%09%09for (int i = 0; i%3C input_string.length(); i++)%7B%0A%09%09%09int val = input_string.charAt(i);%0A%09%09%09char_occurences%5Bval%5D++;%0A%09%09%09if (char_occurences%5Bval%5D %3E 1)%7B%0A%09%09%09%09%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return true;%0A%09%7D%0A%09%0A%7D%0A

Create arrays_01.java