Activity for Hakerh400
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #279454 | Initial revision | — | almost 4 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) |
— | almost 4 years ago |
Edit | Post #279425 |
Post edited: |
— | about 4 years ago |
Edit | Post #279425 |
Post edited: |
— | about 4 years ago |
Edit | Post #279425 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279369 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279174 |
Post edited: |
— | about 4 years ago |
Edit | Post #279325 |
Post edited: |
— | about 4 years ago |
Edit | Post #279325 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Comment | Post #279255 |
44 bytes: `a=lambda x,y:(x>=0)*(1if y<0else 1+a(y,x-y))` (more) |
— | about 4 years ago |
Edit | Post #279254 |
Post edited: |
— | about 4 years ago |
Edit | Post #279254 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279174 |
Post edited: |
— | about 4 years ago |
Edit | Post #279234 | Initial revision | — | about 4 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) |
— | about 4 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) |
— | about 4 years ago |
Edit | Post #279174 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279163 |
Post edited: |
— | about 4 years ago |
Edit | Post #279163 |
Post edited: |
— | about 4 years ago |
Edit | Post #279163 |
Post edited: |
— | about 4 years ago |
Edit | Post #279171 | Initial revision | — | about 4 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) |
— | about 4 years ago |
Edit | Post #279163 | Initial revision | — | about 4 years ago |
Answer | — |
A: "Hello, World!" [Common Lisp], 26 22 bytes (princ"Hello, World!") -4 bytes thanks to @Sisyphus Try it online! (more) |
— | about 4 years ago |
- ← Previous
- 1
- 2
- 3
- 4
- 5
- Next →