Math — Reasoning Check

Apply the module invariants, traces, and boundary conditions.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. How many trailing decimal zeroes does 130! contain? Enter one integer.
2. Given that 46340 squared is 2147395600, what must the integer-floor Sqrt(x) return for x=2147395599? Enter one integer.
3. A caller keeps a reference to the input slice [9,9,9] and calls the supplied PlusOne implementation. Which input and returned contents should it observe?

Select one answer.

4. Half-reversal palindrome checking on 1234321 stops with remaining x=123 and reversed half rev=1234. Which comparison accepts this odd-length palindrome?

Select one answer.

5. A port of fast exponentiation stores n in a signed 32-bit type. For n=-2147483648, which operation order safely creates the positive exponent magnitude?

Select one answer.

6. For points [(1,1),(1,1),(2,3),(3,5),(0,-1),(2,2)], counting repeated coordinates as separate input points, what is the maximum number lying on one line? Enter one integer.
Join Discord