Coding¶
| Criteria | Comments |
|---|---|
| (recommended) Used only the programming structures we have introduced until now.[1] | |
| Variable names follow a consistent convention: camelCase or snake_case | |
| There are no magic numbers (Constant values have a name) | |
| Variable names are meaningful. | |
| Code is easy to follow. | |
| Function is correct. |
E: Alphabetically last¶
E: February¶
E: Hit The Target¶
E: Factorial¶
E: Growth forecast¶
E: Cash rounding¶
E: Hypnotic pattern¶
You may already know more advanced concepts. Sticking to what we’ve covered so far trains you to solve problems with a limited toolbox, and it means you face the same challenges as your classmates, so you can help each other. Advanced concepts will be introduced in the coming weeks. This criterion is optional; the choice is yours.
Because a solar year has actually slightly less than 365 days. Adding a day every four years fixes the error, but if we would not have exception to the leap years, then we would add more days than actually required.