This comment is hidden because it contains spoiler information about the solution
NASM translation and Julia translation
is it possible, that the C-Test is bugged?
i get this output with printf:
and this error:
seems like there are two tests at once
for 321 and 9873
Python version is working fine.
Not an issue. Your solution is inefficient.
The user can modify the input in Python.
The assertions in Python are a huge WTF.
This solution is accepted.
error[E0308]: mismatched types
25 | max_product(vec![13i32, 12, -27, -302, 25, 37, 133, 155, -1], 5),
| ^^^^^ expected u32, found i32
The description repeatedly refers to set bits in a way that may lead one who has never heard of set bits to expect them to be defined somewhere on later in the instructions. One who has never heard of set bits might not know it is a generic term and instead assume it is something specific to the kata (as "extra perfect" numbers are specific to the kata).
Kotlin, actual and expected are flipped in Random Tests.
You should mention that's Kotlin, actual and expected are flipped in Random Tests. It's a problem with your code btw, nobody told you the upper limit is 2000 right?