Comment on And you're telling me that code interviews don't work...

<- View Parent
CaptSneeze@lemmy.world ⁨7⁩ ⁨months⁩ ago

I’m not a programmer, just an occasional hobbyist. Can you fill me in on why the second way is better? Is it because it’s asking for “all numbers between x and y” instead of “all integers between x and y”? I probably would have done it the first way assuming they meant integers, maybe incorrectly.

source
Sort:hotnewtop