New answers tagged

0 votes

Print/Output the L-phabet

Knight, 48 bytes ;=i 64W>91=i+1i;=j 64;W>91=j+1jO+I>i jAiAj"\"O"" Try it online!
user avatar
  • 9,066
2 votes

A multiplication table for the Cheela

Vyxal, 20 \$\times\$ 0.8 = 16 bytes ɾ:v*$τkdkAJİṅ:fÞGL↳⁋ Try it Online! This could actually be 9*0.8=7.2 bytes if Vyxal had a gridify builtin and a buitlin to ...
user avatar
  • 9,066
3 votes

A challenge for rookies

Haskell, 63 bytes q["",q" .*",q" *R"] q l=[l!!(0^m 10-0^m 9+1)|m<-mod<$>[10..80]] Try it online!
user avatar
  • 138k
2 votes

1, 2, Fizz, 4, Buzz

D, 90 bytes import std;void main(){foreach(i;1..101)max("FizzBuzz"[i%3?4:0..i%5?4:8],i.text).writeln;} Try it online!
user avatar
1 vote

A challenge for rookies

Perl 5, 100 bytes print$_%72?$_/72%9?$_%9?($v=1==$_%72%10)&($h=1==$_/72%9-$_/648)?R:$v|$h?'*':'.':$":'':$/for 73..5184 Try it online!
user avatar
  • 4,559
3 votes

A challenge for rookies

C#, 131 bytes ...
user avatar
  • 131
1 vote

A challenge for rookies

Dart, 173 bytes ...
user avatar
  • 531
2 votes

A challenge for rookies

Rust, 171 bytes ...
user avatar
  • 1,725
1 vote

A challenge for rookies

Java (JShell), 151 145 bytes for(int y=1;y<72;y++){var s="";for(int x=1;x<72;){int a=(x-1)%10,b=(y-1)%10;s+=x++%9*(y%9)<1?' ':a+b<1?'R':a*b<1?'*':'....
user avatar
  • 1,003
3 votes

Draw A Sierpinski Triangle

8086 Machine code - 18 bytes (unknown author) / 27 bytes (mine) In early 1990s, I organized a small competition on programmer's board on a Croatian BBS, who can write the smallest program to draw the ...
user avatar
  • 131
2 votes

A challenge for rookies

Vyxal, 18 bytes 8Þ□›0vJf:v*` €xR`İ Try it Online! Another port of Jonah's answer. ...
user avatar
  • 9,066
2 votes

A challenge for rookies

Jelly, 17 bytes 8⁼þj-‘×þ`ị“.# R ” A niladic Link that yields a list of the lines of characters. The empty lines have trailing spaces. Try it online! (Footer joins ...
user avatar
2 votes

A challenge for rookies

BQN (REPL), 24 bytes " .*xR"⊏˜×⌜˜⥊∾⟜0˘1+=⌜˜↕8 Outputs a 2D array of characters. Try it at BQN online! Explanation Ports Jonah's J solution, which you ...
user avatar
  • 33.3k
1 vote

Prime Challenge

Knight, 195 bytes Try It Online!
user avatar
  • 5,790
7 votes

A challenge for rookies

Python, 77 bytes (@xnor) f=lambda*_:[[" ",I[i%10<1]][i%9<8]for i in range(71)] I=f(I:='.*'),f(I:='*R') Attempt This Online! Previous Python, 79 bytes J=[] f=lambda I=J:[...
user avatar
  • 8,180
2 votes

A challenge for rookies

V (vim), 42 bytes iR·* 7o*·. {7ñä}$FR7jdpbñGï{7ñäGGkdd{p Try it online! Hexdump: ...
user avatar
  • 57.4k
4 votes

A challenge for rookies

Knight, 80 bytes ;=i~1W>8=i+1i;=j~1;W>8=j+1j;=x~1;W>8=x+1xO+I?j iS*'*'8xT'R'S*'.'8xT'*'' \'O''O'' Try It Online!
user avatar
  • 5,790
1 vote

A challenge for rookies

Pyth, 36 bytes VJU71sm@>".*R "+!%NT!%dT_<7.|%d9%N9J Try it online!
user avatar
  • 6,609
5 votes

A challenge for rookies

sed -E, 125 bytes ...
user avatar
  • 1,345
1 vote

A challenge for rookies

JShell (Java), 191 188 bytes ...
user avatar
6 votes

A challenge for rookies

K (ngn/k), 34 32 30 24 20 bytes ".*R"a+\:a:,/|+|3,=8 Try it online! idea from jonah's solution =8 identity matrix <...
user avatar
  • 14.7k
3 votes

A challenge for rookies

Haskell, 99 90 89 bytes [[" R*."!!((f(i%10)+f(k%10)+1)*f(k%9*i%9))|k<-r]|i<-r] (%)=mod f=fromEnum.(>0) r=[10..81] Attempt This Online!
user avatar
  • 2,830
4 votes

A challenge for rookies

C (GCC), 102 bytes main(i,k){for(i=9;++i<82;puts(""))for(k=9;++k<82;)putchar(k%9&&i%9?i%10|k%10?i%10&&k%10?46:42:82:32);} Attempt ...
user avatar
  • 2,830
5 votes

A challenge for rookies

MATL, 26 25 24 21 20 bytes '.*xR '8XyQO9Y(le&*) Try it online! -3 bytes thanks to @Luis Mendo Explanation Port of @Jonah answer to MATL ...
user avatar
  • 6,609
3 votes

A challenge for rookies

PARI/GP, 69 bytes f()=matrix(71,,i,j,Vec(".*R ")[if(i%9&&j%9,(i%10==1)+(j%10==1)+1,4)]) Attempt This Online!
user avatar
  • 36.1k
2 votes

A challenge for rookies

Factor + math.matrices, 97 bytes ...
user avatar
  • 10.9k
3 votes

A challenge for rookies

Charcoal, 31 bytes E⁷¹⭆⁷¹§ .*R∧﹪⊕ι⁹∧﹪⊕λ⁹⊕⁺¬﹪ιχ¬﹪λχ Try it online! Link is to verbose version of code. Explanation: ...
user avatar
  • 146k
3 votes

A challenge for rookies

Retina, 64 bytes R7*$(9*$*R)7*$(¶9*$($*7*$(9*.$*)¶)R7*$(9*$*R %8,9,`. 8,9,`.+ Try it online! Explanation: ...
user avatar
  • 146k
30 votes

A challenge for rookies

J, 29 27 24 23 bytes ' .*xR'{~*/~,0,.~1+=i.8 Try it online! My initial observation was that the output is essentially a row-wise function table of the 8x8 identity ...
user avatar
  • 28.6k
9 votes

A challenge for rookies

Ruby, 67 bytes A function that returns a list of lists. ->{(a=*0..70).map{|x|a.map{'.*R '[x%9|_1%9<8?1[x%10]+1[_1%10]:3]}}} Attempt This Online! Ruby, 69 ...
user avatar
7 votes

A challenge for rookies

Python, 86 83 82 81 bytes lambda r=range(71):[[" .*R"[i%9|j%9<8and(i%10<1)-~(j%10<1)]for i in r]for j in r] Attempt This Online! -1 byte thanks to @loopy walt
user avatar
  • 6,609
0 votes

Unfolding the Hexagony source code

Knight, 158 152 bytes ...
user avatar
  • 5,790
2 votes

"Hello, World!"

Carbon, 62 bytes package c api;fn Main()->i32{Print("Hello, World!");return 0;} Try it Online! Thanks to @Steffan for fixing this Carbon is a new ...
user avatar
  • 3,347
0 votes

Carpet an Airport

HTML + Javascript, 378 bytes ...
user avatar
  • 201
0 votes

Print the ASCII printable character set

Ly, 7 bytes ' '~R&o Try it online! ...
user avatar
  • 2,009
0 votes

Print the ASCII printable character set

Knight, 23 bytes ;=a 31W>127=a+1aO+Aa"\" Try it online! Unminified: ...
user avatar
  • 9,066
0 votes

Print the ASCII Code page

Knight, 31 bytes ;=a 32W>127aO+AaI%=a+1a 16"\""" Try it online! Unminified: ...
user avatar
  • 9,066
1 vote

1, 2, miss a few, 99, 100

Knight, 50 bytes O+++++++''-6 5', '-6 4', miss a few, 'A'c'', 'A'd' Try It Online! Probably not optimal but whatever.
user avatar
  • 5,790
0 votes

Print A-Z and their alphabet index without using 1,2,4,6

Knight, 38 bytes ;=a 0W>+*5 5TaO+++''=a++0Ta'. 'A+*8 8a Try It Online!
user avatar
  • 5,790
1 vote

Print 0 to 100 without 1-9 characters

><>, 11 bytes lnaol:aa*(% Try it online! Terminates by error.
user avatar
  • 45k
1 vote

Print 0 to 100 without 1-9 characters

Knight, 37 36 29 21 bytes -8 bytes thanks to @Razetime for reminding me about the ASCII function, which made my entire coercion thing useless ...
user avatar
  • 5,790
0 votes

Print an alphabet wave

Knight, 34 bytes ;=a 65;W>90aO*+AaA=a+1a 13O*"ZA"13 Try it online! Expanded code: ...
user avatar
  • 1,431
0 votes

Draw the Ukrainian Flag

JavaScript (Node.js), 94 bytes Prints a solid flag (or not quite, depending on your font) in the specified rgb colors. ...
user avatar
  • 331
2 votes

Print a 10 by 10 grid of asterisks

Brachylog, 11 bytes "*"j₁₀ẉ₂ⁱ¹⁰ Try it online! Explanation ...
user avatar
  • 33.3k
3 votes

Print a 10 by 10 grid of asterisks

Knight, 14 bytes O*+*"*"10" "10 Try it online! Ungolfed: ...
user avatar
  • 64.8k
2 votes

"Hello, World!"

Knight, 16 bytes O"Hello, World!"
user avatar
  • 1,431
11 votes

"Hello, World!"

Trianguish, 187 bytes ...
user avatar
1 vote

Print the ASCII Code page

Nibbles, 7.5 bytes (15 nibbles) `/16+' '`,95 ...
user avatar
1 vote

Print the ASCII printable character set

AMD64 Bare Metal, 512 bytes ...
user avatar
  • 310
0 votes

Print the ASCII Code page

Kotlin, 89 73 bytes print((' '..'~').chunked(16).map{it.joinToString("")}.joinToString("\n")) Kotlin Playground Edits -16, inlined conversion ...
user avatar
  • 310

Top 50 recent answers are included