Catch Peter's Murderer
We here at PPCG have suffered a tremendous loss. Peter Taylor, one of the greatest code golfers known to mankind, was brutally murdered three days ago. The cause of death, evidently, was blunt force trauma caused by having multiple llamas thrown at him. The police currentl...
Catch Peter's Murderer
We here at PPCG have suffered a tremendous loss. Peter Taylor, one of the greatest code golfers known to mankind, was brutally murdered three days ago. The cause of death, evidently, was blunt force trauma caused by having multiple llamas thrown at him. The police currentl...
@Geobits Yeah that's why it didn't work. I hesitated to even post it in the Sandbox, but I thought it was funny enough of a concept that it would be worth considering...
Challenge
Peter Taylor is dead, and there's no doubt about it. In his memory, you must write a program which determines whether a given user is alive or dead.
Further Information
A user is dead if they haven't been seen for more than a day, any less than that then they are alive. (Check the la...
If I understand his rage correctly, sometimes people get into a turn lane specifically because it's less crowded. Then use it to merge back into traffic later, essentially "skipping" in line. It can also cause slowdowns of the actual turn lane if people don't let him merge back in. It happens often here.
My bigger issue (although turn-lane-merging is annoying) is people that just don't use blinkers. It's not so bad when you're in a turn-only lane or something, but if you're in a turn-or-straight lane, use the damn blinkers.
I haven't seen a discussion on this yet, but I also haven't really seen it used in answers, so I figured it was worth asking a question for link-reference in the future.
So, what's the policy on using URL shortening services to reduce characters for golfs? This question made me think of it. Answ...
@flawr No, it's more like this. I want to turn using the turn lane. They want to merge using the turn lane. I can't stop because because I'm in a traffic lane. They can't stop because they are halfway into oncoming traffic. You can probably visualize a scenario where, if the timing was right, this could go horribly wrong.
I've always wondered, why are the stripes on turn lanes solid on the outside and striped on the inside?
At least around here, they don't usually go solid at first. They're just solid right near the intersection, where you should already be in the right lane.
I can't speak for the intelligence of city planners in Texas :P
We've got one intersection here that's been without lines at all for about 6 months. Three lanes each way, got repaved and never painted. It's a nightmare.
@quartata The difference between cg.xyz and an "URL shortener" is that the former is pretty much universal, yet exclusive for this site. It also has no external resources, since the 301 it serves come from the CDN nameservers (which are the same nameservers SE uses, because we're on the same CDN :) [that is unless you spontaneously teleport across the globe every few microseconds :D]). I, personally, still wouldn't use it for serious challenges.
And I consider the Peter challenge neither serious nor good.
NB : Everything presented in the situation is totally fake and had just been put here to make the challenge a little more fun ;) ... Or maybe not ;)
NB2 : As I'm not a native speaker, if you find some grammar/typos mistakes here, feel free to edit and correct them!
=== === BEGINNING TRANSMISS...
A programming puzzle that is bugging me... Any help is welcome. (programming language agnostic, but JS would be welcome)
I have arrays in variables that look like this (they come in combinations like this):
Variable A:
[
[
"foo",
bar
]
]
Variable B:
[
[
"...
That actually makes sense to me... there's a list [foo,bar] of what the first element could be, and "baz" is the second element, so there's two possible combinations.
But then some of his other examples don't make sense either.
I know there have been a few different challenges where people have to print out Pascal's Triangle, but this one comes with a catch.
You have to print out the first 20 lines of Pascal's triangle, but it has to be formatted with spacing so it looks pretty.
This is code-golf so make it as short a...
That is waaaaaaay easier than what I was about to suggest
I almost commented with this: Let d be the largest number in the triangle. Let l be the number of lines in the triangle. Let n be the current line number, starting with line 1 at the top of the triangle. Let c be the current number. Line n is then 1+(l-n)*d spaces, followed by for each c on line n { c, followed by 1+2*d-length(c) spaces.}
Pretty sure I messed that up in more than one place
I don't want to be a spoilsport, but I once made a joke like this and kept it going for a few days, and the person turned to have indeed passed away (rather tragically). You don't exactly feel great if that happens. (Not that we have to worry about Peter, but take it as a kind warning before you feel like shit for a few days.)
You are a web developer, and your boss has decided to update the company's website. He has decided that less color is better, but he wants the site to look the same. You justly decide that he has no idea what he's talking about, but you're going to try anyway, because you're bored. Since the comp...