News for hackers. Stuff that matters.
Re:People suck at technical interviews (2014) by imtringued on Friday June 10, 2016 @08:27AM (#11875867)
>Coding modulus from scratch with just + - / * is a fun little challenge in its own right, but it'll probably take you longer than 10 minutes to write it correctly and solve fizzbuzz with it.

It's surprisingly easy actually.

var remainder = x - Math.floor(x/y)*y

(Math.floor because javascript)

There are no comments on this comment yet.