@xsot have you tried emailing shinh about changing the deadline for Distance from x 2 so it's the same as Distance from x? i suppose it could be interesting to see how people react to having time to submit after major spoilers though..
Linear Regression: least squares fit of a line
code-golf
Given a set of 2d coordinates (x_i,y_i) i=1,...,n calculate paramters m,q such that the sum of the squares of the absolute errors sum( (y_i - m *x_i -q)^2 ) is minimal.
Rules
(Rules copy pasted from "Hello, World!")
Unlike our usual r...
@Agawa001 Thanks for the suggestion :) I'm not a fan of bonuses in golf challenges - I prefer to have just one challenge and see how the different approaches compare. In this particular question, I wanted the challenge to be about performing the operation rather than base conversion, so I left it open for each answer to use whichever base suits their language best.
Wireworld is fun for the whole family! Your goal is to create a Wireworld implementation in the shortest amount of code possible.
A Wireworld cell can be in one of four different states, usually numbered 0–3 in software, modeled by colors in the examples here:
Empty (Black)
Electron head (Bl...
@quartata Chat is a great place to find out before putting effort into a question. I only seem to be able to find duplicates for other people - when it's a question of my own I tend to use a different name for something and miss that it's already been done...
Generating wildcard that matches only certain strings (puzzle)
(I've read this problem long time ago somewhere but I still don't know what's the best solution. So I'm posting it here. I don't remember the original wording so here is all in my own words and may not be accurate. This is not a golf...
BTW, since I put a lot of effort into my Seriously answer for gamma function golf, I will post it even though I do not know if it works. That is the only way to get Mego to anyway help and get advice from others who knows the language.
The Death Of Low-Resolution Pixel Art (Or, Draw That Death)
code-golfgraphical-outputkolmogorov-complexity
This is an Irregular Webcomic! themed task.*
Death is a rather extensive orginization, and, although Head Death has had no trouble telling his employees apart, certain other entitie...
Seriously, 11 bytes
A port of my TI-BASIC answer. Calculates mean(X)+i*(X-mean(X)).
,;Σ½;)±+ï*+
Explanation:
, Read input
; Duplicate
Σ½ Half the sum (the mean) of the top copy
; Copy the mean
) Rotate stack to the left
Now there's...
does that work for seriously gamma function golf? it is a translation of the c++ answer... I can't get it to run.. maybe takes too long.. it says error, but no error message. Whar could be wrong?
This is an Irregular Webcomic! themed task.*
Death is a rather extensive orginization, and, although Head Death has had no trouble telling his employees apart, certain other entities connected to the orginization have had trouble keeping track of them all.
Thus, your task here is to, given ...
@TanMath Well, I don't really know. If you're not on good terms with the only person who could help you, I guess that's bad luck? Or you could try coming to terms with them and ask nicely if they'd be willing to help you after all?
It's one thing to use standard libraries and another to roll your own. I think it risks turning into a game of "Who can write the most advantageous library?" rather than "Who can find a devious way to use the language?"
(Which isn't to say I don't understand the desire: I often find myself wishi...
I vaguely remember something about ROT13 popping up on my radar, but I sometimes read notifications when I'm half asleep, trying to wake up by reading, fail, and then forget that I ever read that notification.
Anonymous
I find it hard to believe the pinned message got 51 stars without socks being used to cheat the system
There's an old thread I linked for basic rot13 with no accepted answer. I was asking if you'd turn it into a catalogue, add the code snippet and formtting rules and so forth
There have been many other flag challenges posted, but not the national flag of France. Seems a most appropriate time this week.
Produce as SVG, JPEG, PNG, GIF or ANSI (in which case width has to be 78 characters) using the fewest bytes possible.
Wikipedia: Flag of France
Well, turns out Doorknob's
username on GitHub, Reddit, and other sites is
KeyboardFire. That gives me an idea...
The task
You work at KeyboardFire Inc., a company that makes special keyboards. And, by
"special", I mean that, whenever you press a key, something in your house lights
on fire! With...
@Dennis there isn't any for loop in Seriously... I don't know whether there is an explicit stop condition for while loop... bascially, it stops when it becomes zero
@Mego btw the snippet I wrote is not a library. it's an actual piece of code you'd put at the beginning of a python program you are trying to golf, hoping it will shorten the result down the line. I'm not trying to create a new python dialect
@quintopia so about esolangs... the list of interpreters on your user page. is that just a list of all python interpreters for esolangs you found, or did you actually write those?
Seriously, 36 bytes
2╤R`;;3@%Y"Fizz"*)5@%Y"Buzz"*(+;I`Mi
Explanation:
2╤ push the value 10**2 (100)
R pop a: push range(1,a+1)
` start function literal
;; duplicate the top of the stack twice
3 push the value 3
@ swap the top 2 values
% pop a,b: pu...
basically, I figured that the method for editing should vary with the language, since a plain text editor doesn't do it for many languages. A piet editor should let you draw codels, a Spiral editor should let you type along any direction, etc.
@quintopia yeah that would be ideal (and I talked to Timwi about it before... he's added some really neat language-specific debugging features and a few language-specific editing tools since then, but the code is still text based)
@AlexA. not that regularly, but he added both Hexagony and Labyrinth and he finished up Mornington Crescent when I started using it.
There have been many other flag challenges posted but not one for the national flag of France. This week seems like an appropriate time.
Produce this flag in the fewest bytes possible:
The height of the image should be 2/3 of it's width.
Your image must be at least 78 pixels wide.
The stripe...
@TanMath The `...`M part. But I was wrong; it's actually a map. Still, since you're computing a product, you could use map, then reduce the result with π.
What time is it again?
popularity-contestdate-time
The challenge is simple: output the system type in any way you see fit. This includes using any standard loopholes or joke answers - whatever you want.
Rules (limited they may be):
The only standard loophole you cannot break is the new langu...
@Mego Well, there was a free trial that had all the capabilities of the full version except that it had a 16k source code limit (which I've only surpassed like three times) and you couldn't make executables.
Ruby, 229 bytes
->s,m{c=m.flat_map.with_index{|x,i|x.size.times.select{|j|x[j]==?D}.map{|y|[i,y]}}
s.chars{|h|x='1234567890qwertyuiop*asdfghjkl*zxcvbnm'.index h
x,y=(x%10)*2,x/10
a,b=c.min_by{|a,b|(y-a).abs+((y%2>0?x+1:x)-b).abs}
m[a][b]='F'}
m}
Not very good, but I just had to get the first...