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

59 posts
60%
+1 −0
60%
+1 −0
Challenges The Pell Numbers

Haskell, 21 bytes f=0:scanl((+).(*2))1f Try it online!

posted 4y ago by Hakerh400‭

Answer
60%
+1 −0
Challenges Multiply two strings

Haskell, 25 bytes f a=(>>= \c->map(min c)a) Try it online!

posted 3y ago by Hakerh400‭

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

Haskell, 29 bytes import Text.Printf printf"%b" Try it online! Without builtins: Haskell, 37 bytes f n|n<2=[n]|0<1=f(div n 2)++[rem n 2] Try it online!

posted 3y ago by Hakerh400‭

Answer
60%
+1 −0
Sandbox Play dominoes using strings

posted 3y ago by Hakerh400‭

Article code-golf list
50%
+0 −0
Challenges Shape of an array

JavaScript (Node.js), 36 bytes f=a=>a?.map?[a.length,...f(a[0])]:[] Try it online!

posted 4y ago by Hakerh400‭

Answer
50%
+0 −0
Challenges Prime Difference

JavaScript (Node.js), 86 bytes f=(a,b=2,c=(a,b=2)=>a-b?a%b&&c(a,b+1):1,d=a=>c(++a)?a:d(a))=>!c(b)|d(b)-b<a?f(a,b+1):b Try it online!

posted 4y ago by Hakerh400‭

Answer
50%
+0 −0
Challenges Guess the language! (Cops' Thread)

???, 268 bytes !(115,114,101,98,98,111,82,32,100,110,97,32,115,112,111,67)0|2.~(0,0). 1|0|5.~#.~(0,1).~(0,2)0|4.~#.*(2,0,~(0,5),~(0,2)).~(0,1)-{0|5.~#.~(0,0 ,~(0,1))(0,0,~(0,1)).~#.~(0,~(0,0,2))...

posted 3y ago by Hakerh400‭

Answer
50%
+0 −0
Challenges Expand a polynomial

Haskell, 45 bytes foldl(\a b->zipWith((-).(*b))(0:a)$a++[0])[1] Try it online! Uses the "highest power first" convention. Sometimes multiplies the polynomial by $(-1)$.

posted 3y ago by Hakerh400‭

Answer