Got the Classic from two weeks ago correct, although I hadn’t got the closed-form solution; I needed to spend more time playing with toy examples, but I’m not sure I would have discerned the pattern anyway. It’s neat though.
This week’s Express is not too difficult (please don’t let me get it wrong!). The thing that surprised me on thinking about it is that the total number of combinations of shires is only 1024. That’s 210, since there are 10 shires, each of which can be in or out of any particular subset.
Half of the possibles combinations of shires don’t have enough votes to win, and of those combinations that do, many of them could lose a shire and still win, so they can be ignored as well.
My 33 lines of code will print out an answer in about a millisecond. I assume in Haskell it could be done in about four lines! I should take a look at that language sometime.
My answer last week seems to be wrong; I thought agreeing with LL would be enough. I will need to look more closely at it.
This week’s Classic is about stacking blocks. At first glance I thought it was Tower of Hanoi, but it’s a little different:
Got last week’s Express just right, with the right explanation.
This week’s Classic is based on the US flag, but the maths question is this:
[W]hen N equals 50, N is twice a square and N+1 is a centered pentagonal number. After 50, what is the next integer N with these properties?
Simple question for this one:
In Riddler City, the city streets follow a grid layout, running north-south and east-west. You’re driving north when you decide to play a little game. Every time you reach an intersection, you randomly turn left or right, each with a 50 percent chance.
After driving through 10 intersections, what is the probability that you are still driving north?
A fairly simple one this week, I think:
[W]hat is the longest word that doesn’t share any letters with exactly one state?
The word list is indicated, and “state” means a US state. It takes much longer to download the word list than to solve the first part of the problem!
Someone asked me recently about managing outsourced piecework, where people outside your company are paid by the number of tasks performed. I did this on various projects for over a year with a previous employer. Our trial-and-error approach had quite a few errors, but we did eventually establish a stable system. This is an outline of that successful system, with a few notes about things we tried that didn’t work.
Since I’m still learning my way through Jupyter, I tried the Classic as a notebook.
I’m also not sure what the best way to present a notebook is, if I have a WordPress site? The include I used last time wasn’t that great.
For the Express, the best score I can manage is 6. In this grid, there’s no legal place to put a 1 in the top row.
How do you resolve the tension between falling into a filter bubble on one hand, and having your media be an abyss of stupidity and hostility on the other?