Yay295
  • Member for 7 years, 4 months
  • Last seen more than a month ago
Calculate the difficulty of a Code Golf question
38 votes

I've been wanting to do this for a while... HTML + CSS 491 487 485 bytes -4 bytes thanks to Conor O'Brien -2 bytes thanks to Releasing Helium Nuclei Input is taken as the width and height of the page ...

View answer
Integers, Assemble!
6 votes

JavaScript, 284 259 245 241 240 223 209 205 bytes // Golfed let f = (N,W,H)=>eval('a=Array(H).fill("");while(N)g:{s=""+N--;d=s[L="length"];for(i in a)if(a[i][L]+d<=W){a[i]+=s;break g}for(p=0;...

View answer
All in all it's just, uh, another trick in code golf
3 votes

JavaScript, 172 168 165 157 147 142 137 bytes (O,W,H)=>{t='_'.repeat(W),x='| '.repeat(W),f=t+` `;for(i=0;++i<H;)f+=(!(i%3)?t:(i%6)>3?x.substr(O,W):x.substr(8-O,W))+` `;return f} N =...

View answer
List of possible birth years of living humans
3 votes

JavaScript, 55 52 50 49 bytes for(a=d=s=Date().substr(11,4);d-->s-120;)a+=" "+d +9 bytes to alert the data (not necessary if you run this in a console). for(a=d=s=Date().substr(11,4);d--&...

View answer
Array Escape - get out of there
3 votes

JavaScript, 121 132 bytes p=n=>t=i=>n%i&&n>i?t(i+1):(0<n&&n<=i?1:0),c=-1,a=>r=s=>(++c,0<=s&&s<a.length?(p(s)(2)?r(s-a[s]):0||([a[s],s]=[0,a[s]])[1]?r(...

View answer
Count of "a"s and "b"s must be equal. Did you get it computer?
2 votes

JavaScript, 34 bytes s=>(s=s.match`^a(.*)b$`[1])?f(s):1 In true automata fashion, this function returns 1 if it's true, and fails if it's not. f=s=>(s=s.match`^a(.*)b$`[1])?f(s):1 let ...

View answer