# Tag Info

### Encode the systematic binary Varshamov–Tenengolts code

Desmos, 250 bytes ...

### Encode the systematic binary Varshamov–Tenengolts code

Husk, 29 bytes ΣSżż+öm;↔ḋ§%o→Lȯ_ΣWIΣmΘCΘm←İ2 Try it online!
1 vote

### Encode the systematic binary Varshamov–Tenengolts code

Charcoal, 40 bytes ＦＳ«Ｗ¬＆Ｌυ⊖Ｌυ⊞υω⊞υι»⭆υ⎇ιι⎇κ﹪÷﹪±↨⌕Ａυ1¹Ｌυκ²ω Try it online! Link is to verbose version of code. I/O is as digit strings. Explanation: ...
1 vote

### Encode the systematic binary Varshamov–Tenengolts code

MATL, 27 26 bytes 0i"NB?0]@]vtfs_ynQ\BfqW1w( Try it online! Or verify all test cases. How it works ...
1 vote

### Encode the systematic binary Varshamov–Tenengolts code

R, 126 bytes \(x){v=!(l=seq(3*sum(x|1))) v[p<--2^l/2]=seq(!x) v=v[l<-1:(m=which.max(v))] v[p]=x v[-l[p]]=-sum(which(v>0))%%(m+1)%/%-p%%2 v} Attempt This ...

### Encode the systematic binary Varshamov–Tenengolts code

05AB1E, 29 27 26 bytes gÝo<£õÜD»SÐƶ«þO(sgÌ%bRs0ζS Try it online, or try all test cases. I'm quite sure this can be golfed Explanation ...

### Encode the systematic binary Varshamov–Tenengolts code

JavaScript (ES6),  89  83 bytes A rather literal implementation of the algorithm described in the challenge. ...

### Is that number a Two Bit Number™?

Pip, 12 bytes 11N[TBaa]DC0 Outputs 1 for two-bit numbers, 0 otherwise. Try It Online! Or, use as a filter to get all two-bit numbers up to 101. Explanation ...

### Is that number a Two Bit Number™?

PARI/GP, 46 bytes n->(d=digits(n))*d~==2||sumdigits(n,2)==2&&n>0 Attempt This Online! For base 2, checks whether the sum of the digits is $2$. For ...

### Is that number a Two Bit Number™?

Chocolate, 8 bytes ċ11€ṛ0;B Try it online! Link includes γ (map) for test cases. ...

### Is that number a Two Bit Number™?

Fig, $11\log_{256}(96)\approx$ 9.054 bytes Gu=11Oeo0wb See the README to see how to run this I will not let Vyxal beat me. Even though I ported it. No. Never. ...

### Is that number a Two Bit Number™?

Vyxal, 8 bytes ₍fb3eṠ2c Try it Online! Try it Online! - test cases only ...

### Sum of Powers of 2

APL, 11 bytes 2*8-⍸⎕⊤⍨8⍴2 Explanation on example of number 86. Input number: 86 ⊤⍨8⍴2 ...
1 vote

### Sum of Powers of 2

Regex (Perl / PCRE2 / Boost / Pythonregex), 16 13 bytes x(x((?1))\2|) Takes its input in unary, as the length of a string of <...

### Sum of Powers of 2

Vyxal, 3 bytes ʀE⋏ Try it Online! ...

### Sum of Powers of 2

Desmos, 55 bytes f(n)=2^{b[mod(floor(n/2^b),2)=1]} b=[0...floor(log_2n)] Port of Mr. Xcoder's Jelly answer. Try it on Desmos!

### Sum of Powers of 2

Piet + ascii-piet, 88 bytes (4×22=88 codels) My first Piet answer! taqu ci?aqtqqiarufqqrNdsssec ?a??q??vejraimMdk??e lane???nv??rr ?Mddtqe ll esufnvsbiesue In grid ...