Skip to content

Commit

Permalink
Update 2020 final theory solutions with info about overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SolalPirelli committed Mar 9, 2021
1 parent 88c1be3 commit cf0e27a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exams/final/2020-solutions/THEORY.md
Expand Up @@ -74,6 +74,8 @@ Which of the following are good performance optimizations to apply in this case
> Doing an integer multiplication is considerably faster than computing the square root.
> By skipping even numbers, the semantics remain unchanged, but the cost of half of the iterations is saved.
> Note that replacing the loop condition might result in an overflow of `i * i` if `isPrime` is called with a large `n`.
### Question 3 [4 points]

During your internship at BarBaz Corp., you develop an app with a user interface.
Expand Down

0 comments on commit cf0e27a

Please sign in to comment.