Skip to main content

New answers tagged

0 votes

Remove odd indices and double the even indices

Tcl, 56 bytes proc D s {join [lmap a\ b [split $s ""] {join $b$b}] ""} Attempt This Online!
sergiol's user avatar
  • 4,224
0 votes

1, 2, Fizz, 4, Buzz

Pascal (FPC), 154 bytes ...
QOO-OOKALAN's user avatar
0 votes

All Your Base Are Belong To Us (Restricted)

Haskell, 59 - 40 = 19 p$p$p$"Doo#|rx"++p"v$fewi$ev"++"h#ehorqj#wr#xv";p=(pred<$>) Try it online! Shifts chars by 3 (and some ...
Luke Sharkey's user avatar
0 votes

Output the HTML colors

Haskell, 95 bytes ...
Luke Sharkey's user avatar
1 vote

Output the HTML colors

Ruby, 75 bytes Builds a list of possible colors using a Cartesian product and filters down to the correct ones with regex. ...
Value Ink's user avatar
  • 13.6k
0 votes

Output the HTML colors

Tcl, 123 bytes lmap c {0 80 FF 8000 8080 FF00 FFFF 800000 800080 808000 808080 C0C0C0 FF0000 FF00FF FFFF00 FFFFFF} {puts [format %06s $c]} Attempt This Online!
sergiol's user avatar
  • 4,224
0 votes

Lithp Tranthlator

Tcl, 36 bytes proc T t {string map {s th S Th} $t} Try it online!
sergiol's user avatar
  • 4,224
1 vote

Number of string permutations that are palindromes

Japt, 7 bytes á â èêS Try it ...
Shaggy's user avatar
  • 45k
0 votes

Number of string permutations that are palindromes

Vyxal 3, 5 bytes ⑴/⇄⧖∑ Vyxal It Online! ...
Themoonisacheese's user avatar
0 votes

Output the text "Code Bowling"

Brainfuck, -137 score ...
QOO-OOKALAN's user avatar
2 votes

Find the largest contiguous prime in a string

Nekomata, 4 bytes qĜQÅ Attempt This Online! Explanation ...
hakr14's user avatar
  • 5,532
0 votes

1, 2, Fizz, 4, Buzz

Groovy, 60 bytes 1.upto(100){i->println"${i%3?'':'Fizz'}${i%5?'':'Buzz'}"?:i}
QOO-OOKALAN's user avatar
0 votes

Find the largest contiguous prime in a string

APL(NARS), 64 chars {×≢⍵:⍕↑m/⍨m=⌈/m←⍎¨k←⍵⋄''}∘{∼×≢⍵:''⋄0π⍎⍵:,⊂⍵⋄×≢r←∇1↓⍵:r,∇¯1↓⍵⋄''} Input one string contain only digits output one string. If not find one ...
Rosario's user avatar
  • 1,712
0 votes

Find the largest contiguous prime in a string

Pascal, 326 B This complete program requires a processor supporting features of Extended Pascal as defined by ISO standard 10206. ...
Kai Burghardt's user avatar
0 votes

Convert exponents into ASCII art

Japt v2.0a0, 9 bytes ÕqRi^)¸z3 Try it ...
Shaggy's user avatar
  • 45k
0 votes

Convert exponents into ASCII art

Tcl, 156 bytes ...
sergiol's user avatar
  • 4,224
0 votes

Find the "unwrapped size" of a list

Tcl, 28 bytes proc C c {regexp -all \{ $c} Try it online!
sergiol's user avatar
  • 4,224
2 votes

`Vo we l spa ci ng`

Haskell, 123 bytes ...
Luke Sharkey's user avatar
0 votes

True color code

Fortran (GFortran), 35 bytes print'("#"Z6.6)',(i,i=0,8**8-1) end Try it online!
roblogic's user avatar
  • 4,629
2 votes

Convert prefix to infix

Jelly, 22 bytes Uṭ@Ṫ,ṪƊjj@Ø(ʋ@>”9$¡@¥/ Try it online! ...
Unrelated String's user avatar
1 vote

Trick or Treat polyglot

Brainfuck/JavaScript, 60 bytes console["log"]("treat")//-[---[>]>+<<+<--]>+.--.>>++.>-.<++.
QOO-OOKALAN's user avatar
0 votes

24 and 12 Hour Times

Japt -R, 28 27 bytes 24Æ=ÐTTTX)s8 ùC j6,4 v i5î¢ Try it online! ...
Shaggy's user avatar
  • 45k
0 votes

This isn't rocket science

AWK, 59 bytes {gsub(/./," |&|\n")}$0=" |\n /_\\\n"$0" |_|\n/___\\\n VvV" Attempt This Online! Different AWK approach.
xrs's user avatar
  • 2,047
1 vote

Internationalisation -> I18n (numeronym)

K (ngn/k), 16 bytes {($#2_x)/*x,'|x} Try it online! Function { } that zips ,' the argument <...
algorithmshark's user avatar

Top 50 recent answers are included