DEV Community

loading...

Discussion on: Daily Challenge #299 - Time to Grille!

Collapse
bugb profile image
bugb

JS solution

Grille=(m,c)=>[...m].filter((o,i)=>+[...c.toString(2).padStart(m.length,0)][i]).join``
Enter fullscreen mode Exit fullscreen mode