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 ojdo‭

7 posts
60%
+1 −0
Challenges 5 by 5 knight's tour string validator

Uiua, 27 bytes* Function definition. Takes string as argument, returns 0/1 for false/true. ≍♭1◴⧈(≍⇡₁2⍆⌵-)⍉⊟⊃◿₅(⌊÷₅)-@A Uiua pad this online *: assuming a single-byte coding scheme (SBCS) is a...

posted 4mo ago by ojdo‭

Answer
60%
+1 −0
Challenges Create an Alphabet Diamond

Uiua, 38 bytes (SBCS) Full program, prints diamond to STDOUT. Some nifty tricks turned out to be longer than some straightforward ways. Uses one leading whitespace even on the longest line to make...

posted 6mo ago by ojdo‭

Answer
60%
+1 −0
Challenges Lone ​​​​​​ones

Uiua, 19 17 bytes (SBCS) Takes argument as integer (decimal), returns lone ones count. /+↧↧∩¬⊸∩⌟⬚0↻¯∩1⊥₂ Uiua pad this online Explanation Rotates binary representation left and right (negate...

posted 6mo ago by ojdo‭  ·  edited 6mo ago by ojdo‭

Answer
60%
+1 −0
Challenges Digit balanced numbers

Uiua, 10 bytes (SBCS) Counts all digit occurrences and checks the count array is all-equal (for which there is no short idiom in Uiua yet except for that deduplicate-length-equal-to-one and simila...

posted 6mo ago by ojdo‭

Answer
60%
+1 −0
Challenges How many odd digits?

Uiua, 7 bytes (SBCS) Function that takes integer as input, returns odd-digit count. /+◿₂⊥₁₀ Uiua Pad this online Explanation /+◿₂⊥₁₀ # 123 example input ⊥₁₀ # [3 2 1] base-10 digi...

posted 6mo ago by ojdo‭

Answer
60%
+1 −0
Challenges Expand a greyscale/colour hex code

Uiua, 19 bytes (SBCS) Defines a function that takes the string and returns a string: ⊂@#♭⍥⍉⊙(↯2_3)=3⊸⧻↘1 Uiua Pad this online Explanation ⊂@#♭⍥⍉⊙(↯2_3)=3⊸⧻↘1 "#ABC" example input ...

posted 6mo ago by ojdo‭

Answer
60%
+1 −0
Challenges Cumulative Counts

Uiua, 3 bytes (SBCS) Builtin +1. +1⧆ Uiua pad this online

posted 6mo ago by ojdo‭  ·  edited 6mo ago by ojdo‭

Answer