loading...

re: Daily Challenge #257 - Halving Sum VIEW POST

FULL DISCUSSION
 
const half = n => n > 0 ? n + half(n>>1) : n
 
const half = n => n && half(n>>1) + n

:v

code of conduct - report abuse