@@ -0,0 +1,2386 @@
+/*%0A%0ASolar Doomsday%0A==============%0A%0AWho would've guessed? Doomsday devices take a LOT of power. Commander Lambda wants to supplement the LAMBCHOP's quantum %0Aantimatter reactor core with solar arrays, and she's tasked you with setting up the solar panels. %0A%0ADue to the nature of the space station's outer paneling, all of its solar panels must be squares. Fortunately, you have %0Aone very large and flat area of solar material, a pair of industrial-strength scissors, and enough MegaCorp Solar Tape(TM) %0Ato piece together any excess panel material into more squares. For example, if you had a total area of 12 square yards of %0Asolar material, you would be able to make one 3x3 square panel (with a total area of 9). That would leave 3 square yards, %0Aso you can turn those into three 1x1 square solar panels.%0A%0AWrite a function answer(area) that takes as its input a single unit of measure representing the total area of solar panels %0Ayou have (between 1 and 1000000 inclusive) and returns a list of the areas of the largest squares you could make out of %0Athose panels, starting with the largest squares first. So, following the example above, answer(12) would return %5B9, 1, 1, 1%5D.%0A%0ALanguages%0A=========%0A%0ATo provide a Python solution, edit solution.py%0ATo provide a Java solution, edit solution.java%0A%0ATest cases%0A==========%0A%0AInputs:%0A    (int) area = 12%0AOutput:%0A    (int list) %5B9, 1, 1, 1%5D%0A%0AInputs:%0A    (int) area = 15324%0AOutput:%0A    (int list) %5B15129, 169, 25, 1%5D%0A%0AUse verify %5Bfile%5D to test your solution and see how it does. When you are finished editing your code, use submit %5Bfile%5D to submit your answer. If your solution passes the test cases, it will be removed from your home folder.%0A%0A%0Afoobar:~/solar_doomsday guest$ cat constraints.txt%0AJava%0A====%0A%0AYour code will be compiled using standard Java 7. It must implement the answer() method in the solution stub.%0A%0AExecution time is limited. Some classes are restricted (e.g. java.lang.ClassLoader). You will see a notice if you use a restricted class when you verify your solution.%0A%0AThird-party libraries, input/output operations, spawning threads or processes and changes to the execution environment are not allowed.%0A%0APython%0A======%0A%0AYour code will run inside a Python 2.7.6 sandbox.%0A%0AStandard libraries are supported except for bz2, crypt, fcntl, mmap, pwd, pyexpat, select, signal, termios, thread, time, unicodedata, zipimport, zlib.%0A%0A%0A*/%0A

Create solar_doomsday_question.java