DEV Community

loading...

Discussion on: Daily Challenge #53 - Faro Shuffle

Collapse
6502 profile image
Andrea Griffini

You can shorten the index computation to:

i+i%2*a.length>>1