Process two consecutive lines lines at time, use better hash.
Some extra jvm args, and don't return index from temperature parsing.
Check List:
[X] You have run ./mvnw verify and the project builds successfully
[X] Tests pass (./test.sh <username> shows no differences between expected and actual outputs)
[X] All formatting changes by the build are committed
[X] Your launch script is named calculate_average_<username>.sh (make sure to match casing of your GH user name) and is executable
[X] Output matches that of calculate_average_baseline.sh
[X] For new entries, or after substantial changes: When implementing custom hash structures, please point to where you deal with hash collisions (line number)
Process two consecutive lines lines at time, use better hash. Some extra jvm args, and don't return index from temperature parsing.
Check List:
[X] You have run
./mvnw verify
and the project builds successfully[X] Tests pass (
./test.sh <username>
shows no differences between expected and actual outputs)[X] All formatting changes by the build are committed
[X] Your launch script is named
calculate_average_<username>.sh
(make sure to match casing of your GH user name) and is executable[X] Output matches that of
calculate_average_baseline.sh
[X] For new entries, or after substantial changes: When implementing custom hash structures, please point to where you deal with hash collisions (line number)
Execution time: 12.0s (2.5s faster on 4 core i7)
Execution time of reference implementation: 288s