@@ -0,0 +1,1246 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=11553%0A%0Aimport java.util.List;%0Aimport java.util.ArrayList;%0Aimport static java.util.Arrays.asList;%0A%0Apublic class WhichDay %7B%0A%09public static String getDay(String%5B%5D notOnThisDay) %7B%0A%09%09List%3CString%3E weekDays = new ArrayList%3CString%3E(asList(%22Sunday%22, %22Monday%22, %22Tuesday%22, %22Wednesday%22, %22Thursday%22, %22Friday%22, %22Saturday%22));%0A%09%09%0A%09%09for (String day : notOnThisDay) %7B%0A%09%09%09weekDays.remove(day);%0A%09%09%7D%0A%09%09%0A%09%09return weekDays.get(0);%0A%09%7D%0A%7D%0A%0A%0A/* Alternative solution */%0A%0A/*%0A%0A// https://community.topcoder.com/stat?c=problem_statement&pm=11553%0A%0Aimport java.util.Map;%0Aimport java.util.HashMap;%0A%0Apublic class WhichDay %7B%0A%09public static String getDay(String%5B%5D notOnThisDay) %7B%0A%09%09String%5B%5D weekDays = new String%5B%5D %7B %22Sunday%22, %22Monday%22, %22Tuesday%22, %22Wednesday%22, %22Thursday%22, %22Friday%22, %22Saturday%22 %7D;%0A%09%09Map%3CString, Integer%3E dayOccurrences = new HashMap%3CString, Integer%3E() %7B%0A%09%09%09@Override%0A%09%09%09public Integer get(Object key) %7B%0A%09%09%09%09if (containsKey(key)) %7B%0A%09%09%09%09%09return super.get(key);%0A%09%09%09%09%7D%0A%09%09%09%09else %7B%0A%09%09%09%09%09return 0;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D;%0A%09%09%0A%09%09for (String day : notOnThisDay) %7B%0A%09%09%09dayOccurrences.put(day, 1);%0A%09%09%7D%0A%09%09%0A%09%09for (String day : weekDays) %7B%0A%09%09%09if (dayOccurrences.get(day) == 0) %7B%0A%09%09%09%09return day;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return %22%22;%0A%09%7D%0A%7D%0A%0A*/%0A

Create WhichDay.java