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
60%
+1 −0
Challenges Are All Elements Equal?

J, 4 bytes -:|. Try it online! Checks if the input array matches itself reversed. This is a tacit form and is executed monadically as x f (g x).

posted 3y ago by south‭

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

J, 2 bytes */ Try it online! For complex numbers with 0 as the second part, J will represent them as ints, but they are treated the same.

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges "Hello, World!"

J, 15 bytes 'Hello, World!' Or if you prefer to beat around the bush...76 bytes. {:a.{~-:^:_1@:|.~&2 S:0<@:<\50 16.5 36 50.5 54 54 55.5 22 16 43.5 55.5 57 54 Try it online!

posted 3y ago by south‭

Answer
60%
+1 −0
Challenges Reduce over the range [1..n]

J, 11 9 bytes /@(>:@i.) Attempt it online!

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

Answer
50%
+0 −0
Challenges "Hello, {name}!"

Factor, 30 29 bytes [ readln "Hello, %s!"printf ] Try it online! Uses io and formatting.

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

Answer
50%
+0 −0
Challenges Partial Sums of Harmonic Series

Goruby, 38 bytes ->n{dw{$.+=1;$..mp{1.0/-~_1}.su<n};$.} This was not as much fun as I thought it would be, but it was fun enough to use once.

posted 2y ago by south‭

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

Ruby, 12 bytes ->{_1.tally} Attempt it online!

posted 2y ago by south‭

Answer
50%
+0 −0
Challenges Evens or Odds - you know this one

Myby, 2 bytes %2 Input is taken from the command line implicitly. 0 for even, 1 for odd. Since Myby is still in its early stages, there is no online sandbox. Some test cases can be seen here.

posted 2y ago by south‭

Answer
50%
+0 −0
Challenges Cumulative Counts

J, 9 bytes 1#.]=&><\ This is the 7 byte APL solve but makes use of #. in place of +/"1. I came up with 1#.]=[\ first, but bubbler pointed out it breaks when non zeros are present. At...

posted 2y ago by south‭

Answer
50%
+0 −0
Challenges Create a range grid

MATL, 8 bytes tp:qwPe! Try it online! tp:qwPe! t : duplicate with implicit input (function args as array) p : product [2 3]p -> 6 : : range 1..n q : decremen...

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

Answer
50%
+0 −0
Challenges Solve Goldbach's Conjecture

MATL, 19 bytes XH:YqtZ*!tsH=f1Z)Z) Try it online! I'm still a novice at MATL, so I am all ears to any improvements. XH:YqtZ*!tsH=f1Z)Z) XH - copy implicit input to H clipboa...

posted 2y ago by south‭

Answer
50%
+0 −0
Challenges Are All Elements Equal?

MATL, 4 bytes tPX= Try it online! tPX= t - duplicate with implicit input P - fliplr in MATLAB, reverses top of stack X= - isequal

posted 2y ago by south‭

Answer
50%
+0 −0
Challenges Solve Goldbach's Conjecture

Ruby, 69 bytes require'prime';->n{Prime.first(n).then{_1.product _1}.find{_1+_2==n}} Try it online!

posted 2y ago by south‭

Answer
50%
+0 −0
Challenges Solve Goldbach's Conjecture

J, 50 bytes {{({~[:y&(i.&1@:=)[:>+/&.>),{@(,&<)~p:i.p:^:_1 y}} Try it online! A nasty DD solution. {{({~[:y&(i.&1@:=)[:>+/&.>),{@(,&<)~p:i.p:...

posted 2y ago by south‭

Answer
50%
+0 −0
Challenges A number adder, not a death adder

J, 21 bytes ,&'+".1!:1(3)'1!:1(3) Try it online! STDIN is ugly in J because you have to use foreigns.

posted 3y ago by south‭

Answer
50%
+0 −0
Challenges Shape of an array

J, 1 byte $ This is shape of. Pretty low-hanging fruit tbh.

posted 3y ago by south‭

Answer
50%
+0 −0
Challenges It's Hip to be Square

J, 6 bytes 0=1|%: Try it online!

posted 3y ago by south‭

Answer
50%
+0 −0
Challenges Evaluate a single variable polynomial equation

J, 2 bytes p. Try it online! J likes inflections so it won't beat APL, but J is still a contender :).

posted 3y ago by south‭

Answer
50%
+0 −0
Challenges Repeat the characters

J, 1 byte # Try it online! The copy verb. It works the exact same as APL and Jelly's replicate.

posted 3y ago by south‭

Answer