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

Type On... Excerpt Status Date
Edit Post #279454 Initial revision over 3 years ago
Answer A: Weave Strings Together
[JavaScript (Node.js)], 53 bytes f=(a,b=[],c=a.map(([a,...c])=>(b+=[a],c)))=>b&&b+f(c) Try it online!
(more)
over 3 years ago
Edit Post #279425 Post edited:
over 3 years ago
Edit Post #279425 Post edited:
over 3 years ago
Edit Post #279425 Initial revision over 3 years ago
Answer A: Bytes to Segfault
[JavaScript (Node.js)], 35 32 25 bytes -7 bytes thanks to @celtschk‭ with(process)kill(pid,11) Try it online!
(more)
over 3 years ago
Edit Post #279369 Initial revision over 3 years ago
Answer A: 1, 2, Fizz, 4, Buzz!
[JavaScript (Node.js)], 64 bytes for(n=0;101>++n;)console.log(['Fizz']+['Buzz']||n) Try it online!
(more)
over 3 years ago
Edit Post #279174 Post edited:
over 3 years ago
Edit Post #279325 Post edited:
over 3 years ago
Edit Post #279325 Initial revision over 3 years ago
Answer A: Tile pyramids on top of each other!
[JavaScript (Node.js)], 57 56 bytes f=(a,b='/\\')=>a--?''.padEnd(a)+b+` `+f(a,'/'+b+'\\'):'' Try it online!
(more)
over 3 years ago
Comment Post #279255 44 bytes: `a=lambda x,y:(x>=0)*(1if y<0else 1+a(y,x-y))`
(more)
over 3 years ago
Edit Post #279254 Post edited:
over 3 years ago
Edit Post #279254 Initial revision over 3 years ago
Answer A: Length of a Sumac Sequence
[JavaScript (Node.js)], 31 bytes f=(a,b)=>a<0?0:b<0?1:1+f(b,a-b) Try it online!
(more)
over 3 years ago
Edit Post #279174 Post edited:
over 3 years ago
Edit Post #279234 Initial revision over 3 years ago
Answer A: Partial Sums of Harmonic Series
[JavaScript (Node.js)], 47 bytes f=(a,b=0,c=a=>a&&1/a+c(a-1))=>c(b) f=(a,i=0n,p=a=>g(a)/c(a),g=(a,b=a)=>a&&c(b)/a+g(-a,b),c=a=>a?ac(-a):1n)=>p(i)<a?f(a,-i):i Try it online!
(more)
over 3 years ago
Comment Post #279231 "The number of bytes used" is undefinable. Checking any non-trivial property of a program is uncomputable. Besides that, the scoring formula U^2/B allows the score to grow without bounds. JS example: `console.log(/*/)/**/1+1...+1+1/**/)/*/(gol.elosnoc` - replace `...` with `+1` repeated n times, the ...
(more)
over 3 years ago
Edit Post #279174 Initial revision over 3 years ago
Answer A: Print the Great Numeric Pyramid
[JavaScript (Node.js)], 137 136 117 bytes with(Math)f=n=>(m=(a,b)=>a?m(--a,b)+b(a):[])(28,y=>m(55,x=>x>26-y&x<y+28&(x^y)?min(abs(abs(27-x)-y)/2,27-y):' ')+` `) Try it online!
(more)
over 3 years ago
Edit Post #279163 Post edited:
over 3 years ago
Edit Post #279163 Post edited:
over 3 years ago
Edit Post #279163 Post edited:
over 3 years ago
Edit Post #279171 Initial revision over 3 years ago
Answer A: Evaluate a single variable polynomial equation
[JavaScript (Node.js)], 40 bytes f=(a,b,c=1)=>a.reduce((d,e)=>d+e(c=b)) Try it online!
(more)
over 3 years ago
Edit Post #279163 Initial revision over 3 years ago
Answer A: "Hello, World!"
[Common Lisp], 26 22 bytes (princ"Hello, World!") -4 bytes thanks to @Sisyphus‭ Try it online!
(more)
over 3 years ago