The solutions in this repository are for the practice round and qualification round.
All solutions were written in Java and can be compiled (with Java installed) using:
javac Solution.java
Once the bytecode class file has been generated(a Solution.class file should appear), you can then execute them with the following command and feeding it a set of input:
java Solution < input.in > output.out
The command above will then output the results of running Solution.java to 'output.out'.
For problems that did not have an input, Google provided a python testing tool to validate the correctness of the solution. The command to run it is:
python testing_tool.py java Solution
There should be a message in the command prompt that states if you were successful or not.
For each solution, there is a sample input provided to test accuracy of the output.
- Number Guessing - 10/10 points
- Senate Evacuation - 10/10 points
- Steed 2: Cruise Control - 10/10 points
- Bathroom Stalls - 10/15 points
- Saving The Universe Again - 10/10 points
- Trouble Sort - 8/15 points
- Go, Gopher! - 10/20 points
- Cubic UFO - 0/10 points (did not attempt)
I am proud of what I was able to accomplish by making it past the qualification round and into Round 1. Unfortunately I was unable to participate due to the timing of the rounds and conflicts of prior engagements.
Nevertheless, it was a worthwhile experience that tested abilities and I am happy about my personal growth.