@@ -0,0 +1,485 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=12387%0A%0A// Optimization idea: count number of negative numbers and return sign, based on whether that number is odd or even.%0A%0Apublic class EasyHomework %7B%0A%09public static String determineSign(int%5B%5D A) %7B%0A%09%09String sign = %22POSITIVE%22;%0A%09%09%0A%09%09for (int number : A) %7B%0A%09%09%09if (number == 0) %7B%0A%09%09%09%09return %22ZERO%22;%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if (number %3C 0) %7B%0A%09%09%09%09sign = (sign.equals(%22POSITIVE%22)) ? %22NEGATIVE%22 : %22POSITIVE%22;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return sign;%0A%09%7D%0A%7D%0A

Create EasyHomework.java