# Tag Info

• 2,944
1 vote

### Convert YYYYMM to MMMYY

R, 61 bytes toupper(format(as.Date(paste0(scan(,""),1),"%Y%m%d"),"%b%y")) Try it online! R, 62 bytes (a former version featuring an ...

### Sum of Positive and Negative Powers of 2

Python + gmpy2   2.1.5 ...
• 5,991
1 vote

• 127k

### Sum of Positive and Negative Powers of 2

JavaScript (Node.js), ≈3.3ms (1) This hexadecimal version was suggested by tsh Expects a BigInt. This computes hammingweight(XOR(n, 3*n)), as suggested on A007302. ...
• 193k
1 vote

### Find characters common among all strings

vemf, 5 bytes Takes a list of strings. ╧û╓¿\ Though vemf has no built-in multiset intersection, it doesn't do too badly, because û is made to implement multiset ...
• 151
1 vote

### Find characters common among all strings

Uiua SBCS, 17 16 bytes ⍜-(⊚/↧⬚0∵◇°⊚)@\0 Try it! -1 thanks to Tbw
• 24.6k

### Find characters common among all strings

Charcoal, 18 bytes ＷＳ⊞υιΦθ⬤υ›№λι№…θκι Try it online! Link is to verbose version of code. Takes input as a list of newline-terminated strings. Explanation: ...
• 172k

### Find characters common among all strings

R, 49 bytes \(S)Reduce(\(x,y)y[pmatch(x,y,0)],strsplit(S,"")) Attempt This Online! Or alternatively, this 66 bytes version: R, 66 bytes ...

### Find characters common among all strings

R, 81 bytes \(l)rep(y<-unique(el(x<-strsplit(l,""))),Map(\(a)min(sapply(x,\(s)sum(s==a))),y)) Attempt This Online!
• 16.7k
1 vote

### No strings attached!

Cubical Agda 2.6.5, 591 Bytes Cubical Agda library version a0b4ba3. I use the HEAD version for my convenience, but a standard release version should do. In fact a ...
• 735
1 vote

• 172k

### Find characters common among all strings

Vyxal 3 l, 3 bytes /Þ⁾ Try it Online! (link is to literate version) uses literate mode, ends up being a port of jelly anyways ...
• 4,105
1 vote

### Build the first 6 letters of an Italian codice fiscale (tax identification number)

Charcoal, 82 bytes ≔AEIOUθ≔⪪Ｓ η≔⟦⪫⮌Ｅ⊕∧⬤§η±¹№αι›³Ｌ§η±²⊟ηω⪫ηω⟧ηＵＭη⭆²Φι∧№αν⁼λ№θν⭆η…⁺Φι∨¬κ∨⊖μ№θ§⁺§η¹AA³X³ Try it online! Link is to verbose version of code. Takes ...
• 172k

• 1,705

### Find characters common among all strings

Jelly, 3 bytes œ&/ Takes a single input argument with a list of strings. Try it online! Explanation Reduce (/) using ...
• 105k

### Find characters common among all strings

JavaScript (ES10), 62 bytes Expects words as arrays of characters and returns in the same format. ...
• 193k
1 vote

### Build the first 6 letters of an Italian codice fiscale (tax identification number)

Python, 176 bytes ...
• 3,685

### Build the first 6 letters of an Italian codice fiscale (tax identification number)

Retina 0.8.2, 94 92 bytes (.+?) (..? \w+|\S+)2¶$1 %\W %O$([AEIOU])|. $.1 (¶.).(.[^AEIOU])$1$2 %$ X %M!^... ¶ Try it online! Takes input in upper case but ...
• 172k

### Build the first 6 letters of an Italian codice fiscale (tax identification number)

JavaScript (ES6), 138 bytes Expects the input in lowercase and returns a string in lowercase as well. ...
• 193k
1 vote

Perl 5 + -p0l051, 56 bytes y/[]//d;s/# (\N+bytes?).+ (\N+).+TIO-.+: /$1: [$2](/s Try it online!
• 23.8k
1 vote

TypeScript’s type system, 125 bytes ...
• 7,382

### There, I fixed it (with tape)

R, 100 bytes \(S,!=utf8ToInt,x=diff(!S)-1)o=Map(\(j,k)cat(intToUtf8(c(rep(!"TAPE",6)[0:j],k))),c(0,x*(x>0)),!S) Attempt This Online! This solution ...
1 vote

### Cold Bee and Old Beer

jq, 93 bytes . as $L|def m(f):map(select(f|IN($L[])));[m(.[1:]),m(.[:-1])]|combinations|select(.[0]!=.[1]) Attempt This Online! ...
• 6,574

### Compare two strings, with NaC

JavaScript (Node.js), 86 bytes a=>b=>g(a,0)==g(b)||[g(a,'A')<=g(b,'Z'),g(a,'Z')>=g(b,'A')] g=(a,c)=>a.replace(/1/g,c) Try it online! First check if ...
• 24.5k

### Cold Bee and Old Beer

Dart, 206 204 bytes ...
• 141
1 vote

### Cold Bee and Old Beer

F#, 168 bytes ...
PowerShell Core, 50 bytes $args|group{$_-in("aeiou"|% t*y)}|%{-join\$_.Group} Try it online! Takes the input string using splatting Returns two strings <...