Our Discord: https://discord.gg/ajezQHdnRU. Please email mathteca@gmail.com if any organization or society wants to partner with Mathteca.
Simulation is to use a computer to simulate the operations required in the question.
Simulation questions usually have the characteristics of large amount of code, many operations, and complicated ideas. Due to the large amount of code, it is often difficult to check for errors. If you make mistakes in the exam, it will be a waste of time.
When writing practice questions, following the following suggestions may improve your speed:
Before writing code, write down as much of the process as possible on scratch paper.
In the code, try to modularize each part and write it as a function, structure or class.
Some concepts that may be used repeatedly can be transformed uniformly to facilitate processing: for example, if a question gives you "YY-MM-DD hours: minutes", extract it into a function and process it into seconds, which will reduce conceptual confusion.
Debugging in chunks when debugging. The advantage of modularity is that you can easily adjust certain parts independently.
When writing code, you must have a clear mind. Don't write whatever comes to mind, but follow the steps on the paper.
In fact, the above steps are also helpful when solving other types of problems.
A worm of unknown length lies at the bottom of a well n inches deep. It climbs up u inches at a time, but has to rest before climbing up again. While resting, it slipped d inches. It will then repeat the process of climbing up and resting. How many crawls does it take for the worm to climb out of the well? If the worm reaches the top of the well after climbing, we also assume that the worm has climbed out of the well.