Quantcast
Channel: All about basic binary - Code Golf Stack Exchange
Viewing all articles
Browse latest Browse all 23

Answer by Razetime for All about basic binary

$
0
0

Husk, 11 10 bytes

¶tfoΛε`B¹ḣ

Try it online!

-1 byte from Zgarb.

Explanation

¶tfoΛ<2`B¹ḣḣ list from 1..n  f         filter based on the result of the following   o        composition of 2 functions       `B¹  the input in base n as digitsΛ<2     are all digits < 2? t          remove first element¶           join with newlines

Viewing all articles
Browse latest Browse all 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>