loading...

re: Daily Challenge #251 - Largest Number in a Sequence VIEW POST

FULL DISCUSSION
 

Javascript version:

const largest = num => [...`${num}`].reduce((c,_,i,ar)=>Math.max(+ar.slice(i, i+5).join(''), c), 0)

code of conduct - report abuse