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 »

Activity for ojdo‭

Type On... Excerpt Status Date
Edit Post #296217 Initial revision 4 months ago
Answer A: 5 by 5 knight's tour string validator
Uiua, 27 bytes Function definition. Takes string as argument, returns 0/1 for false/true. ```uiua ≍♭1◴⧈(≍⇡₁2⍆⌵-)⍉⊟⊃◿₅(⌊÷₅)-@A ``` Uiua pad this online : assuming a single-byte coding scheme (SBCS) is acceptable. Explanation ```uiua ≍♭1◴⧈(≍⇡₁2⍆⌵-)⍉⊟⊃◿₅(⌊÷₅)-@A ...
(more)
4 months ago
Edit Post #295761 Post edited:
6 months ago
Edit Post #295813 Initial revision 6 months ago
Answer A: 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 "`⍥@ `" work smoothly even then (it chokes on 0 input). ```uiua F ← &p⊂⟜(↘₁⇌)+@A&pf⍥@ ˜-26...
(more)
6 months ago
Edit Post #295761 Initial revision 6 months ago
Answer A: Lone ​​​​​​ones
Uiua, 19 17 bytes (SBCS) Takes argument as integer (decimal), returns lone ones count. ```uiua /+↧↧∩¬⊸∩⌟⬚0↻¯∩1⊥₂ ``` Uiua pad this online Explanation Rotates binary representation left and right (negated), then checks that the "neighbourhood" is empty. ```uiua /+↧↧∩¬⊸∩⌟⬚0↻¯∩1...
(more)
6 months ago
Edit Post #295649 Initial revision 6 months ago
Answer A: 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 similar gymnastics). ```uiua =1⧻◴⊕⧻⊸⊛°⋕ ``` Uiua pad this online Explanation ```uiua =1⧻◴...
(more)
6 months ago
Edit Post #295647 Initial revision 6 months ago
Answer A: How many odd digits?
Uiua, 7 bytes (SBCS) Function that takes integer as input, returns odd-digit count. ```uiua /+◿₂⊥₁₀ ``` Uiua Pad this online Explanation ```uiua /+◿₂⊥₁₀ # 123 example input ⊥₁₀ # [3 2 1] base-10 digit array (LSB first) ◿₂ # [1 0 1] modulo 2 /+ # 2 ...
(more)
6 months ago
Edit Post #295637 Initial revision 6 months ago
Answer A: Expand a greyscale/colour hex code
Uiua, 19 bytes (SBCS) Defines a function that takes the string and returns a string: ```uiua ⊂@#♭⍥⍉⊙(↯23)=3⊸⧻↘1 ``` Uiua Pad this online Explanation ```text ⊂@#♭⍥⍉⊙(↯23)=3⊸⧻↘1 "#ABC" example input ↘1 "ABC" drop first character (the "#") ...
(more)
6 months ago
Edit Post #295636 Post edited:
Link to language
6 months ago
Edit Post #295636 Initial revision 6 months ago
Answer A: Cumulative Counts
Uiua, 3 bytes (SBCS) Builtin +1. ``` +1⧆ ``` Uiua pad this online
(more)
6 months ago