DEV Community

Discussion on: [Challenge] Add numbers without (+-*/)

 
shekohex profile image
shekohex

No, in the test case, A = 40 means [0u8; 40] that also means 40 bytes, and B = 2 which is [0u8; 2] that's 2 bytes, which is total of 42 bytes.

Thread Thread
 
pyrsmk profile image
Aurélien Delogu • Edited

Ah indeed, thanks! I misunderstood the syntax.

edit : that's a really smart solution btw, thanks for sharing