Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by south‭

44 posts
71%
+3 −0
Challenges Can you give me half?

J, 4 3 distinct, 6 bytes -:_-:_ Half of _ -: _ which is asks if infinity matches infinity. Thanks to @xash in the APL farm discord for saving the 3 unique bytes and orthoplex for catching my bl...

posted 3y ago by south‭  ·  edited 3y ago by south‭

Answer
66%
+2 −0
Challenges Lowercase, but not just the letters

J, 15 bytes 7 u:32 OR 3 u:] Port of Shaggy's answers. Evaluates as 3 forks 7 u: (32 OR (3 u:])) Attempt This Online! 7 u:32 OR 3 u:] ] : right argument 3 u: : 3&a...

posted 2y ago by south‭

Answer
66%
+2 −0
Challenges Just the vowels please

Fig, 3 bytes Actual score is: $3\log_{256}(96)\approx$ 2.469 bytes. Filters consonants from the input string using implicit input. Fcb Try it online! Fcb F : Filter with two string args fi...

posted 2y ago by south‭

Answer
66%
+2 −0
Challenges Keyword golfing

Ruby 3.1.0, 274 259 249 bytes -10 bytes thanks to Paradox in the Ruby discord BEGIN{END{alias module class begin rescue retry ensure end if self elsif defined? for$.in true do super while f...

posted 2y ago by south‭  ·  edited 2y ago by south‭

Answer
66%
+2 −0
Challenges Looping counter

MATL, 16 bytes 1`1yh1$lZctDwQt] Try it online! The TIO output fetch will likely fail, so make sure to click the run button to stop the execution. 1`1yh1$lZctDwQt] 1` ] - Push 1 o...

posted 2y ago by south‭

Answer
66%
+2 −0
Challenges Create a range grid

Ruby, 33 bytes ->n,m{[*(0...n*m).each_slice(m)]} Try it online!

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges The Pell Numbers

J, 28 bytes [:}.@{.m&(+/ .*)&m=.2 1,:1 0 Try it online! Tacit matmul solve. x&u&y applies x to y n times.

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges Just the vowels please

Raku, 18 bytes {m:g:i/<[aeiou]>/} Implicitly matches the topic variable with the regex Try it online! {m:g:i/<[aeiou]>/} { } : anonymous code block m ...

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges 8 coexisting queens

J, 20 bytes '01'{~#:2^2842 A.i.8 Attempt This Online! Non-tacit program that outputs implicitly in a REPL. Shoutout to Raul (Miller)#5220 in the APL farm discord for thinking of this cool idea...

posted 2y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Can you give me half?

Fig, 2 unique, 2 total H! Try it online! Halves the negation of the empty string when no input is given.

posted 2y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Looping counter

Fig, 5 bytes The actual score is $5\log_{256}(96)\approx$ 4.116 bytes. The leaderboard only likes ints in the header. (J,Q0 -1 char thanks to Seggan Try it online! Fractional byte lang creat...

posted 2y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Multiply complex numbers.

Sidef, 25 bytes {eval .split.join(" * ")} {eval .split.join(" * ")} { } # Create anonymous code block .split.join(" * ") # splits on whitespace and joins with "...

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges Find n Niven Numbers

Ruby, 56 bytes p *(1..).lazy.filter{_1%_1.digits.sum<1}.take(gets.to_i) Attempt This Online!

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges Determine whether an integer is square-free

Myby, 12 5 bytes primf=primfd primf : prime factors = : equals primfd : unique prime factors Evaluated as a monadic fork in J (f y) g (h y). The test cases (retest...

posted 2y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Make a frequency table (histogram)

J, 8 bytes ~.,:#/.~ Tacit function, this is the de facto method for this problem in J. Attempt it online!

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges Make a frequency table (histogram)

Python 3, 38 36 33 bytes lambda x:{n:x.count(n)for n in x} -2 bytes thanks to @Razetime Another -3 bytes thanks to @orthoplex Attempt it online!

posted 2y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Compute the determinant

J, 5 bytes -/ .* Try it online! For the determinant conjunction, the space before u is necessary, so there is no shaving a byte here. If you want to read more about this conjunction, check out...

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Determine whether an integer is square-free

MATL, 6 bytes YftuX= Try it online! Same method as Moshi. YftuX= Yf - factor with implicit input t - duplicate u - unique X= - isequal

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges Can you give me half?

MATL, 3 distinct, 3 total lH/ Try it online! Computes 1/2. Reserved labels for constants can be found here

posted 2y ago by south‭

Answer
60%
+1 −0
Challenges Small integer swapping

J, 3 bytes ,|. Try it online! This hook y f (g y) appends y with its reverse.

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Determine whether an integer is square-free

J, 17 bytes {{*./y|~*:2+i.y}} Try it online! A direct definition closest to Razetime's infuriatingly good train solution. Outputs a non-zero number for true and 0 for false.

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Make my value binary

J, 2 bytes #: Try it online! Antibase two

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Reverse an ASCII string

J, 2 bytes |. Try it online!

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Roll n fair dice

J, 10 7 bytes +/>:?#/ Try it online! +/>:?#/ #/ : Inserts dyadic # into an array n m Creates n copies of m ? : Roll from 0..y >: : Increment +/ : S...

posted 3y ago by south‭  ·  edited 2y ago by south‭

Answer
60%
+1 −0
Challenges Make $2 + 2 = 5$

J, 7 9 bytes ++2&=@+.~ Try it online! Dyadic fork that executes with the form (x + y) + (2 = x +. y). Thanks to torres for pointing out the obvious flaw.

posted 3y ago by south‭  ·  edited 2y ago by south‭

Answer