Skip to main content

New answers tagged

1 vote

Count how many distance sequences are far from all others

Python, with igraph Port of @Christian Sievers's C++ answer in Python. ...
138 Aspen's user avatar
  • 6,617
1 vote

Construct a uInt from an array of bits

AWK, 42 bytes {for(i=NF;i;i--)s+=x?($i*2)^(x++):x++}$0=s Attempt This Online!
xrs's user avatar
  • 589
0 votes

Numbers with multiple runs of ones

C, 78 bytes long i,j;main(){for(scanf("%ld",&j);!(++i>>j);)i&-~(i|~-i)&&printf("%ld ",i);} Based on @Alchymist's entry, ...
NoLongerBreathedIn's user avatar
0 votes

Numbers with multiple runs of ones

05AB1E, 8 7 bytes oLʒb01å -1 byte porting @xnor's first Python approach Try it online or verify all test cases. Original approach (8 bytes): ...
Kevin Cruijssen's user avatar

Top 50 recent answers are included