@@ -0,0 +1,586 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=5988%0A%0Aimport java.util.Set;%0Aimport java.util.HashSet;%0A%0Apublic class UniqueDigits %7B%0A%09public static int count(int n) %7B%0A%09%09int count = 0;%0A%09%09%0A%09%09for (int i = 1; i %3C n; ++i) %7B%0A%09%09%09String currentNumber = String.valueOf(i);%0A%09%09%09Set%3CCharacter%3E currentNumberUniqueDigits = new HashSet%3CCharacter%3E();%0A%09%09%09for (int j = 0; j %3C currentNumber.length(); ++j) %7B%0A%09%09%09%09currentNumberUniqueDigits.add( currentNumber.charAt(j) );%0A%09%09%09%7D%0A%09%09%09if ( currentNumberUniqueDigits.size() == currentNumber.length() ) %7B%0A%09%09%09%09count++;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return count;%0A%09%7D%0A%7D%0A

Create UniqueDigits.java