> I will give a bounty to the shortest answer which can solve the last test case (and any other input of similar magnitude, so don't think about hardcoding it) in less than a second.
How come certain random strings produce various colors when entered as background colors in HTML? For example:
<body bgcolor="chucknorris"> test </body>
...produces a document with a red background across all browsers and platforms.
Interestingly, while chucknorri produces a red back...
> The Cambridge Guide to English Usage notes that the "pressure to substitute fewer for less seems to have developed out of all proportion to the ambiguity it may provide in noun phrases like less promising results".
Also, a better quote from EL&U:
> Ah, less vs. fewer. Another arrow in the prescriptivist’s quiver of pointless pedantry.
Note that if the FDA didn't exist, it would definitely be less, because nobody in this room can actually count calories (probably, unless one of you really knows your chemistry?)
(FDA is the food and drug administration for the US)
Maybe it's just confirmation bias talking, but I see that a lot more with Pyth than other golfing languages. Or at least pyth users explicitly say it more.
@Sp3000 To be fair, one of those posts is 26830 characters long, and that doesn't even account for the effort of making the five-ten images that are part of the post.
Yea, but I hate having to go to data.se for what seems like a simple thing that should be in the basic search.
The effort differential between "type in a search box" and "write a query after figuring out the appropriate table/column names" is larger than my interest permits.
@Rainbolt Our Chaos lecturer set one up and had everyone try to predict when it would loop over the top for the last time by clapping. There were a lot of incorrect claps for a long time...
[6/10/2015 10:26 AM] Guy Guy:
John, have a moment to assist us with a code review
[6/10/2015 10:26 AM] John Rainbolt:
yes
[6/10/2015 10:26 AM] Guy Guy:
lend me your brain
Yes. It's clearly a pseudonym. He's hiding something.
@Martin You can broaden that search by omitting Sp3000's name to find others (and swapping with 'translate' or similar). I put it in there only because it has no false positives and for the humor factor.
Ok, there are some awkward complications to some of the hexagon symmetries, so my initial programme of reducing the problem to O(16) determinants fails, but I think I've fixed everything now. I get (1,) 1, 6, 113, 20174, 22306955, 123222909271, 3283834214485890, 421263391026827547540. Anyone able to confirm or dispute?
@BrainSteel I know, but it's odd to completely ignore the entire mobile sector if you're targeting "power users" IMO. Most power users I know have at least one mobile device.
I tried Firefox Spinnyfox, and Chrome, but both couldn't cope with lots of tabs, and kept crashing. IE is slow as anything, but it doesn't crash every day
Apparently Vivaldi was developed for those who were disgruntled by Opera moving to Blink. They've built Vivaldi on Chromium, which uses Blink... am I missing something?
In about 10^10^10^10^10 years, the universe will likely spontaneously arrange itself into an exact copy of our universe, except that Martin will have added explanations to all answers.
(it's not quite that full at the moment, I had to restart recently, my computer is the same as my browser, stuff opens, doesn't close, and then after 4months it seizes up and gets a fresh start)
(note that where it shows 3 things stacked, that means 3 or more... which in most of those cases means a lot more)
I sometimes forget to close stuff on my home computer, but workspaces and a large amount of RAM keeps that in check for me. Also, the taskbar in Ubuntu is a bit saner than that, even when a bunch of stuff is open.
I never have more things open than I have monitors for. Lync (a.k.a. Skype for Business) being maybe the only exception
It's so easy to press the Windows key and type the name of the application that I want to run, that I can't think of a good reason to leave it open all the time.
IE is kind of funny in that regard, it starts up quickly... but if you leave it in the background for a day or two, it takes a good few minutes to wake up
My home setup is pretty simple. Two monitors, four workspaces. Eight fullscreen options, so I can spatially orient everything instead of Alt-Tabbing my way through a list or similar. General browsing in the top left, coding top right, video player and related bottom left, and misc bottom right.
@randomra can you save some characters by replacing 2 with a marker and a 0, and then counting from 0 to 1 and 1 to 2 either before that marker or at the end?
there might be a fourth feasible approach, provided someone can figure out a short way to add two skew binary numbers: take the binary representation, remember its popcount, cut off the last bit... interpret this as a skew binary number and add to it the skew binary representation of the popcount (which you can determine recursively)
I haven't found a good way to do the addition though, other than counting up... but if you're writing code to count up, you might as well count up all the way.
@MartinBüttner Not yet. I was going to give it a try yesterday, but @randomra's Rearrange Words nerd-sniped me again. (I think I finally got a perfect score.)
It does the same divmod thing, just upwards, so it goes f(n,1), f(n,3), f(n,7)... until x is large enough. Base case is [n], then after that it's replacing the last element with divmod (like your fold)