Amphibological
  • Member for 3 years, 6 months
  • Last seen more than 3 years ago
Count the lucky tickets within the given range
6 votes

Japt, 38 15 bytes õV Ëì ò3n)mx r¥ -23 thanks to Shaggy! My first Japt submission; thanks to Shaggy for all the help! Try it online!

View answer
Implementing a stack
4 votes

Japt, 14 bytes ;NË¥0?Ao:ApDÃA Try it online! Actual TIO doesn't work for some reason (it exits with an error, see here) so I've given a page to the ETHproductions' online Japt interpreter.

View answer
Which Go rank is higher?
3 votes

Ruby, 52 46 bytes ->s{s.max_by{|x|(5-x[-1].ord*5%8)*x.to_i(26)}} Straightforward port of xnor's answer. Try it online! EDIT: -6 bytes by realizing I could have used a Proc

View answer
2D Array Middle Point
2 votes

Haskell, 46 42 bytes x%y|odd$x*y,x>1=(`div`2)<$>[x,y]|1<2=[0,0] Try it online! EDIT: -4 bytes thanks to a trick from Arnauld's answer.

View answer
Get the century of a year
1 votes

Labyrinth, 10 bytes ?(_100/)!@ Same method as my Gaia answer. Try it online!

View answer
Get the century of a year
1 votes

Gaia, 4 bytes (ℍ/) Pretty straightforward... Thanks to Mr. Xcoder and this post for getting me interested in this cool but relatively unused language! Try it online!

View answer
Make a hammer animation
1 votes

Python 3.6, 413 bytes from os import* from time import* s,y=' -';b=y*19;d=b+b;f=y*10;i=y*26;g=s*9;c=s+g;h=s*26;j=s*32;a=c+g;e=a+a;p=print;k=f'\n|{a}|';t,v=system,sleep;z='cls' while 1: t(z);p(f' {b} {...

View answer
Concatenating n with n + 1
0 votes

Haskell, 57 55 bytes f n=read<$>zipWith((.show).(++).show)[0..][1..n]::[Int] A function which takes a number and returns a list. EDIT: -2 Bytes thanks to Cat Wizard Try it online!

View answer