I was trying this in C++ at first. I could not get all the basic tests to output what the results were at the same time. I could only get one basic test at a time, and I COULD NOT figure out which one.
Switched to Python and could see all the tests evaluated simultaneously.
This comment is hidden because it contains spoiler information about the solution
Why is it fine to not have a semicolon?
I was trying this in C++ at first. I could not get all the basic tests to output what the results were at the same time. I could only get one basic test at a time, and I COULD NOT figure out which one.
Switched to Python and could see all the tests evaluated simultaneously.
This breaks the problem down well, but the solution could be much simpler I think.