Which code belongs at the question mark?
If you wish, you can peek at a hint
Old visitors of this blog may note a change. The previous posts appeared about once a month, a pretty long period. They also offered a historical background of a type of puzzle. This post contains just 1 puzzle. I hope to do more of this 1 puzzle posts – they are easier to digest for the casual reader, they are lighthearted, and offer diversion.
The elaborate posts providing an overview of a type of puzzle require me a lot of time; time i don’t always have: there’s not only the time to write up a puzzle and check the solution, there’s also the need to do a lot of research. At the moment I have an issue about train shunting puzzles in the final stages, and also one about the Japanese Tangram, though I still have to do all the editing on this last one. And I have ideas for several more, such as the “zebra puzzles” and truth / false puzzles associated with Boolean logic. i still regard these posts as a main content provider for this blog.
I.m.h.o. they offer a lot of material. They also provide something in mental exercise which single puzzles do not offer.
Usually our brains are not really at work. Well, of course they do work, even tapping with a finger requires a lot of cells in our brain to work. What I mean is that our brain cells do a lot of routine work. We use our memory, and act from routine. This also applies to “brain workers”, such as accountants, programmers and managers. We humans have a natural tendency to fall back in routine. Single puzzles, especially when they are of a new type, force our brains to find new ways. We often don’t have a method at hand to solve them. This makes puzzles of a new type especially hard nuts to crack. In real life, an accountant may face this challenge when for example faced with a tooling called XBRL. A programmer may face such a challenge when trying to make the step from COBOL programming to C++ on smart phones.
After solving a single new puzzle, we have found some new ways to solve a problem. But often we do not yet have a clear distinction between the puzzle and the way we solved it. A series of puzzles of the same type helps our brains to add new heuristics to our problem solving skills, in the sense that our brains add a new routine to its arsenal of heuristics. I’m not sure how this relates to