JavaScript (ES6), 17 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by performing bitwise or
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript, 17 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by performing bitwise or
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript (ES6), 17 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by performing bitwise or
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript, 17 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by bitshifting answer by 0performing bitwise or
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript, 17 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by bitshifting answer by 0
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript, 17 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by performing bitwise or
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript, 1817 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y>>0y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by bitshifting answer by 0
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript, 18 bytes
x=>y=>[x/y>>0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by bitshifting answer by 0
Gets remainder by x%y
Puts both values in an array so that they can both be returned
JavaScript, 17 bytes
Thanks to @Arnauld for golfing off one byte
x=>y=>[x/y|0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by bitshifting answer by 0
Gets remainder by x%y
Puts both values in an array so that they can both be returned