4 is the first multiple of 2 and 4 12 is also missing ... etc
Thank you for finding and reporting the error. So I can learn.
Invalid... Wouldn't pass the case [2,4,40]
Correct, solution is invalid. Looks nice but fails for [2,4,40]
This comment is hidden because it contains spoiler information about the solution
Funny...I just came up with and submitted the same exact algo!
Great idea using none. I got all tripped up using a counter to select the previous letter
Loading collection data...
4 is the first multiple of 2 and 4
12 is also missing ... etc
Thank you for finding and reporting the error. So I can learn.
Invalid... Wouldn't pass the case [2,4,40]
Invalid... Wouldn't pass the case [2,4,40]
Invalid... Wouldn't pass the case [2,4,40]
Invalid... Wouldn't pass the case [2,4,40]
Correct, solution is invalid. Looks nice but fails for [2,4,40]
This comment is hidden because it contains spoiler information about the solution
Funny...I just came up with and submitted the same exact algo!
Great idea using none. I got all tripped up using a counter to select the previous letter