# Puzzle

Published articles for Puzzle.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Solving a Double-Sided Wooden Puzzle with Coordinate Systems and Search Pruning

DevFeed: [Solving a Double-Sided Wooden Puzzle with Coordinate Systems and Search Pruning](<https://devfeed.tech/articles/how-wooden-puzzles-can-destroy-dev-teams-27374.md>)

Original publisher: [Read original article](<http://engineering.khanacademy.org/posts/evil-puzzle.htm>)

Author: Khan Academy

Published: 2015-07-06T22:00:00Z

Content type: article

Language: en

Sources: [Khan Academy](<https://devfeed.tech/sources/khan-academy.md>)

Topics: [Development](<https://devfeed.tech/topics/development.md>), [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>)

Tags: [dev](<https://devfeed.tech/tags/dev.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [logic](<https://devfeed.tech/tags/logic.md>), [news](<https://devfeed.tech/tags/news.md>), [program](<https://devfeed.tech/tags/program.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>), [web-frontend](<https://devfeed.tech/tags/web-frontend.md>)

### AI overview

John Sullivan describes how five Khan Academy developers wrote solvers for a double-sided wooden puzzle. The article covers representing piece positions, handling rotations and reflections, and pruning the search space to improve placement search.

### Source excerpt

By John Sullivan Last week a mysterious double-sided puzzle appeared at Khan Academy. To solve the puzzle you ... Read more

## Squingle Arcade Is Available Now For Free On PC VR

DevFeed: [Squingle Arcade Is Available Now For Free On PC VR](<https://devfeed.tech/articles/squingle-arcade-is-available-now-for-free-on-pc-vr-17308.md>)

Original publisher: [Read original article](<https://www.uploadvr.com/squingle-arcade-available-now-on-pcvr/>)

Author: Mike Johnson

Published: 2026-09-10T00:14:39Z

Content type: news

Language: en

Sources: [UploadVR](<https://devfeed.tech/sources/uploadvr.md>)

Topics: [arcade](<https://devfeed.tech/topics/arcade.md>), [Mazes](<https://devfeed.tech/topics/maze.md>), [pc](<https://devfeed.tech/topics/pc.md>)

Tags: [free](<https://devfeed.tech/tags/free.md>), [leaderboards](<https://devfeed.tech/tags/leaderboards.md>), [multiplayer](<https://devfeed.tech/tags/multiplayer.md>), [orbs](<https://devfeed.tech/tags/orbs.md>), [pc](<https://devfeed.tech/tags/pc.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [vr-gaming](<https://devfeed.tech/tags/vr-gaming.md>)

### AI overview

Squingle Arcade, a free-to-play quickplay version of the fluid-maze puzzle game Squingle, is now available on SteamVR and Quest. It includes more than 60 levels, asynchronous multiplayer, ghost racing, leaderboards, and scalable mazes.

### Source excerpt

Squingle Arcade, the follow up to the original fluid-maze-navigating puzzle game Squingle, is out now for PC VR.

## Reverse-engineer an ASIC from its chip layout

DevFeed: [Reverse-engineer an ASIC from its chip layout](<https://devfeed.tech/articles/can-you-reverse-engineer-an-asic-20156.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/can-you-reverse-engineer-an-asic/>)

Author: Anish Singhani

Published: 2026-08-05T00:00:00Z

Content type: article

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [Hardware](<https://devfeed.tech/topics/hardware.md>), [Reverse Engineering](<https://devfeed.tech/topics/reverse-engineering.md>), [Verilog](<https://devfeed.tech/topics/verilog.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [design-automation](<https://devfeed.tech/tags/design-automation.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [reverse-engineering](<https://devfeed.tech/tags/reverse-engineering.md>), [routing](<https://devfeed.tech/tags/routing.md>), [signal](<https://devfeed.tech/tags/signal.md>)

### AI overview

Jane Street presents a puzzle that challenges readers to reverse-engineer an ASIC from its physical chip layout, recover the underlying netlist, determine the circuit's purpose, and derive a final answer from its output.

### Source excerpt

Earlier this year we published a puzzle that handed you a complete neural network and asked you to figure out what it did. The response was great, so we've made another one! This time, we're going much deeper down the tech stack. For this puzzle we've designed a chip, but we're only giving you the layout. A crash course in how chips get made Modern chips start life as code.

## Gamification 2.0. Beyond Points and Badges: Designing for Players, Not Metrics. Chapter 5: Implementation

DevFeed: [Gamification 2.0. Beyond Points and Badges: Designing for Players, Not Metrics. Chapter 5: Implementation](<https://devfeed.tech/articles/gamification-2-0-beyond-points-and-badges-designing-for-players-not-metrics-chapter-5-implementation-9080.md>)

Original publisher: [Read original article](<https://uxmag.com/articles/gamification-2-0-beyond-points-and-badges-designing-for-players-not-metrics-chapter-5-implementation>)

Author: Montgomery Singman

Published: 2026-06-09T03:26:13Z

Content type: tutorial

Language: en

Sources: [UX Magazine](<https://devfeed.tech/sources/ux-magazine.md>)

Topics: [implementation](<https://devfeed.tech/topics/implementation.md>), [User experience (UX)](<https://devfeed.tech/topics/ux.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [building](<https://devfeed.tech/tags/building.md>), [complex-systems](<https://devfeed.tech/tags/complex-systems.md>), [core](<https://devfeed.tech/tags/core.md>), [creative](<https://devfeed.tech/tags/creative.md>), [design](<https://devfeed.tech/tags/design.md>), [expression](<https://devfeed.tech/tags/expression.md>), [games](<https://devfeed.tech/tags/games.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [interface](<https://devfeed.tech/tags/interface.md>), [leaderboard](<https://devfeed.tech/tags/leaderboard.md>), [loops](<https://devfeed.tech/tags/loops.md>), [management](<https://devfeed.tech/tags/management.md>), [multiplayer](<https://devfeed.tech/tags/multiplayer.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [rpg](<https://devfeed.tech/tags/rpg.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [simulation](<https://devfeed.tech/tags/simulation.md>), [strategy](<https://devfeed.tech/tags/strategy.md>), [ux](<https://devfeed.tech/tags/ux.md>)

### AI overview

This chapter presents a practical framework for implementing Gamification 2.0. It recommends choosing a dominant game genre that matches an app's core activities, aligning that genre with user psychology, and designing satisfying intrinsic interaction loops before adding points, badges, or other extrinsic rewards.

### Source excerpt

Part 5 of the "Gamification Series." A framework for developers: from theory to practice Everything I've outlined so far is meaningless if you can't apply it. So let me give you a practical framework for actually implementing Gamification 2.0. Step 1: Stop copying mechanics; choose a genre Your first question isn't "What gamification mechanics should The post Gamification 2.0. Beyond Points and Badges: Designing for Players, Not Metrics. Chapter 5: Implementation appeared first on UX Magazine.

## Reverse-engineering a neural network puzzle with mechanistic interpretability

DevFeed: [Reverse-engineering a neural network puzzle with mechanistic interpretability](<https://devfeed.tech/articles/can-you-reverse-engineer-our-neural-network-20157.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/>)

Author: Ricson Cheng

Published: 2026-02-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>)

Tags: [capture](<https://devfeed.tech/tags/capture.md>), [ml](<https://devfeed.tech/tags/ml.md>), [models](<https://devfeed.tech/tags/models.md>), [neural](<https://devfeed.tech/tags/neural.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [research](<https://devfeed.tech/tags/research.md>)

### AI overview

This article explains a Jane Street machine-learning puzzle in which solvers receive a neural network specification, including its weights, and must determine what the network does. It describes why ordinary brute-force approaches fail and presents a solver's reverse-engineering process using mechanistic interpretability.

### Source excerpt

A lot of "capture-the-flag" style ML puzzles give you a black box neural net, and your job is to figure out what it does. When we were thinking of creating our own ML puzzle early last year, we wanted to do something a little different. We thought it'd be neat to give users a complete specification of the neural net, weights and all. They would then be forced to use the tools of mechanistic interpretability to reverse engineer the network--which is a situation we sometimes find ourselves facing in our own research, when trying to interpret features of complex models.

## Whodunit: LLM Murder Mysteries

DevFeed: [Whodunit: LLM Murder Mysteries](<https://devfeed.tech/articles/whodunit-llm-murder-mysteries-37524.md>)

Original publisher: [Read original article](<https://blog.apartment304.com/whodunit-llm-murder-mysteries/>)

Author: James Heller

Published: 2025-08-26T07:00:00Z

Content type: article

Language: en

Sources: [Apartment 304](<https://devfeed.tech/sources/apartment-304.md>)

Topics: [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>)

Tags: [ai-authored](<https://devfeed.tech/tags/ai-authored.md>), [apartment-304](<https://devfeed.tech/tags/apartment-304.md>), [custom-software-solutions](<https://devfeed.tech/tags/custom-software-solutions.md>), [devops](<https://devfeed.tech/tags/devops.md>), [devops-engineer](<https://devfeed.tech/tags/devops-engineer.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [llm](<https://devfeed.tech/tags/llm.md>), [logic](<https://devfeed.tech/tags/logic.md>), [models](<https://devfeed.tech/tags/models.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [software-engineer](<https://devfeed.tech/tags/software-engineer.md>), [strategies](<https://devfeed.tech/tags/strategies.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

This article describes building Whodunit, a low-tech murder-mystery game whose mysteries are written with large language models. It discusses developing a mental model for calling LLMs, testing LLM services and Go libraries, improving logical soundness through trial and error, and managing unreliable LLM APIs.

### Source excerpt

Can Large Language Models write engaging mysteries? Find out in this week's episode of "Whodunit?"

## Developing an Internal Tool for Our Puzzle Editor

DevFeed: [Developing an Internal Tool for Our Puzzle Editor](<https://devfeed.tech/articles/developing-an-internal-tool-for-our-puzzle-editor-39151.md>)

Original publisher: [Read original article](<https://open.nytimes.com/developing-an-internal-tool-for-our-puzzle-editor-d5dc7a9a6464?source=rss----51e1d1745b32---4>)

Author: The NYT Open Team

Published: 2025-06-02T15:54:44Z

Content type: article

Language: en

Sources: [New York Times](<https://devfeed.tech/sources/new-york-times.md>)

Topics: [dashboards](<https://devfeed.tech/topics/dashboards.md>), [Data Management](<https://devfeed.tech/topics/data-management.md>), [interface](<https://devfeed.tech/topics/interface.md>), [payload](<https://devfeed.tech/topics/payload.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [data-management](<https://devfeed.tech/tags/data-management.md>), [developing](<https://devfeed.tech/tags/developing.md>), [interface](<https://devfeed.tech/tags/interface.md>), [internal-tools](<https://devfeed.tech/tags/internal-tools.md>), [payload](<https://devfeed.tech/tags/payload.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tool](<https://devfeed.tech/tags/tool.md>), [web-development](<https://devfeed.tech/tags/web-development.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

The article describes how The New York Times developed the Connections Reference Dashboard, an internal tool for managing puzzle data and supporting the Connections editor's workflow. It explains the tool's interface, handling of changing puzzle data, search capabilities, and reduction of manual cross-referencing steps.

### Source excerpt

How we developed a dashboard tool created to help ease the workflow of managing puzzles for our Connections editor.Illustration by Su Yun Song By Shafik Quoraishee and Wyna Liu In the game Connections, every puzzle is a meticulously crafted challenge designed to captivate our audience and spark intellectual curiosity. Developing these puzzles can sometimes be a time consuming and intricate task. Each puzzle requires planning, beginning with conceptualizing fresh categories and plausible misleads, followed by testing the combinations for balance and solvability, and concluding with refinement and publication-ready formatting. The process requires both creativity and quality control. Wyna Liu, the editor of Connections has the responsibility of constructing and reviewing multiple puzzles spanning various dates, ensuring that each board remains consistent, fresh and challenging to our puzzle solvers. This is a challenging endeavor where there isn't much room for error. In order to address the challenge, we developed the Connections Reference Dashboard -- an in company tool aimed at streamlining data management while providing the puzzle editor with an intuitive, aesthetically pleasing interface that enhances the daily workflow. There were two considerations in developing this tool. Firstly was technical work in handling a dynamically changing payload of puzzle data. We wanted to create a rich and visually resonating interface that was easy to navigate and gave a bit of the feel of the Connections game itself. Therefore, everything from the board results to the search interface was designed with these ergonomics in mind. We wanted to create a level of tactility to the tool which was reminiscent of and which reduced the number of manual steps needed to cross reference both categories and words in individual boards. The primary functionality that Wyna was after was the ability to quickly identify words that have appeared in previous Connections boards, as well as their con

## Advent of Code 2024 in pure SQL

DevFeed: [Advent of Code 2024 in pure SQL](<https://devfeed.tech/articles/advent-of-code-2024-in-pure-sql-25086.md>)

Original publisher: [Read original article](<https://databasearchitects.blogspot.com/2024/12/advent-of-code-2024-in-pure-sql.html>)

Author: Thomas Neumann (noreply@blogger.com)

Published: 2024-12-27T16:57:00Z

Content type: article

Language: en

Sources: [Database Architects](<https://devfeed.tech/sources/database-architects.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [duckdb](<https://devfeed.tech/tags/duckdb.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [recursive-sql](<https://devfeed.tech/tags/recursive-sql.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

The author describes solving every Advent of Code 2024 problem in pure SQL. Small-scale traversals were practical and sometimes pleasant, while larger recursive queries could be inefficient and require more than 200 GB of memory. The experience suggests that recursive SQL would benefit from mechanisms for updating state and supporting more complex control flow.

### Source excerpt

On a whim I decided to do this years advent of code in pure SQL. That was an interesting experience that I can recommend to everybody because it forces you to think differently about the problems. And I can report that it was possible to solve every problem in pure SQL. In many cases SQL was actually surprisingly pleasant to use. The full solution for day 11 (including the puzzle input) is shown below: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30with recursive aoc10_input(i) as (select ' 89010123 78121874 87430965 96549874 45678903 32019012 01329801 10456732 '), lines(y,line) as ( select 0, substr(i,1,position(E'\n' in i)-1), substr(i,position(E'\n' in i)+1) from aoc10_input union all select y+1,substr(r,1,position(E'\n' in r)-1), substr(r,position(E'\n' in r)+1) from lines l(y,l,r) where position(E'\n' in r)>0 ), field(x,y,v) as ( select x,y,ascii(substr(line,x::integer,1))-48 from (select * from lines l where line<>'') s, lateral generate_series(1,length(line)) g(x) ), paths(x,y,v,sx,sy) as ( select x,y,9,x,y from field where v = 9 union all select f.x,f.y,f.v,p.sx,p.sy from field f, paths p where f.v=p.v-1 and ((f.x=p.x and abs(f.y-p.y)=1) or (f.y=p.y and abs(f.x-p.x)=1)) and p.v>0), results as (select * from paths where v=0), part1 as (select distinct * from results) select (select count(*) from part1) as part1, (select count(*) from results) as part2 Parsing the input is a bit painful in SQL, but it is not too bad. Lines 1-10 are simply the puzzle input, lines 11-17 split the input into individual lines, and lines 18-21 construct a 2D array from the input. The algorithm itself is pretty short, lines 22-27 perform a recursive traversal of the field, and lines 28-39 extract the puzzle answer from the traversal results. For this kind of small scale traversals SQL works just fine. Other days were more painful. Day 16 for example does conceptually a very similar traversal of a field, and it computes the minimal traversal distance

## Computing Percentages Easier

DevFeed: [Computing Percentages Easier](<https://devfeed.tech/articles/computing-percentages-easier-40472.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2023/09/05/computing-percentages-easier/>)

Published: 2023-09-05T21:47:37Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [math](<https://devfeed.tech/topics/math.md>), [Computing](<https://devfeed.tech/topics/computing.md>)

Tags: [approach](<https://devfeed.tech/tags/approach.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [math](<https://devfeed.tech/tags/math.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [numbers](<https://devfeed.tech/tags/numbers.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [scaling](<https://devfeed.tech/tags/scaling.md>)

### AI overview

A math tutorial explains mental percentage calculations using the fact that x% of y equals y% of x. It presents several approaches, including choosing the easier percentage, multiplying first and dividing by 100, scaling from 1%, and splitting the denominator.

### Source excerpt

Problem: Compute 16% of 25 in your head. Solution: 16% of 25 is equivalent to 25% of 16, which is clearly 4. This is true for all numbers: $x\%$ of $y$ is always equal to $y\%$ of $x$. The first one is $\frac{x}{100} y$ and the second is $\frac{y}{100}x$, and because multiplication is commutative and associative, both are equal to $(x \cdot y) / 100$. You can pick the version that is easiest.

## The Secrets of Skellig

DevFeed: [The Secrets of Skellig](<https://devfeed.tech/articles/the-secrets-of-skellig-40643.md>)

Original publisher: [Read original article](<https://eviltrout.com/blog/2023-07-17-the-secrets-of-skellig/>)

Published: 2023-07-17T00:00:00Z

Content type: release

Language: en

Sources: [Robin Ward](<https://devfeed.tech/sources/robin-ward.md>)

Topics: [Game Development](<https://devfeed.tech/topics/game-development.md>), [Godot](<https://devfeed.tech/topics/godot.md>), [blender](<https://devfeed.tech/topics/blender.md>), [3D](<https://devfeed.tech/topics/3d.md>)

Tags: [blender](<https://devfeed.tech/tags/blender.md>), [development](<https://devfeed.tech/tags/development.md>), [game](<https://devfeed.tech/tags/game.md>), [game-development](<https://devfeed.tech/tags/game-development.md>), [games](<https://devfeed.tech/tags/games.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>)

### AI overview

The author announces The Secrets of Skellig, a puzzle game inspired by crosswords, while noting that the project is currently on indefinite hold. The article describes learning Blender and Godot while developing the game primarily alone.

### Source excerpt

Note: The Secrets of Skellig is on indefinite hold now while I work on other things. I've wanted to dip my feet back into game development for a while, and last year I decided to put my money where my mouth is. I resigned from my full time job at Discourse and pulled up a bunch of YouTube tutorials on Blender and Godot. It's been a ridiculous amount of fun, and I've learned so much about how modern 3D games are made. I'm finally ready to announce what I've been working on. It's a puzzle game, inspired by crosswords, called "The Secrets of Skellig."

## Writing a Sokoban Puzzle Game in JavaScript

DevFeed: [Writing a Sokoban Puzzle Game in JavaScript](<https://devfeed.tech/articles/writing-a-sokoban-puzzle-game-in-javascript-37609.md>)

Original publisher: [Read original article](<https://www.taniarascia.com/sokoban-game/>)

Author: hello@taniarascia.com

Published: 2021-07-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tania Rascia](<https://devfeed.tech/sources/tania-rascia.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Code](<https://devfeed.tech/topics/code.md>), [Canvas](<https://devfeed.tech/topics/canvas.md>), [HTML5](<https://devfeed.tech/topics/html5.md>), [Demo](<https://devfeed.tech/topics/demo.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [canvas](<https://devfeed.tech/tags/canvas.md>), [code](<https://devfeed.tech/tags/code.md>), [demo](<https://devfeed.tech/tags/demo.md>), [game](<https://devfeed.tech/tags/game.md>), [games](<https://devfeed.tech/tags/games.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [html5](<https://devfeed.tech/tags/html5.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>)

### AI overview

A tutorial describing the implementation of a Sokoban puzzle game in JavaScript. It explains the map representation, entity movement and pushing rules, recursive handling of multiple blocks, and rendering the game on an HTML5 canvas.

### Source excerpt

So the other day, I made an implementation of a Sokoban puzzle game in JavaScript. Here's the source code and here's the demo. The game...

## Interesting Matlab puzzle

DevFeed: [Interesting Matlab puzzle](<https://devfeed.tech/articles/interesting-matlab-puzzle-22320.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/interesting-matlab-puzzle>)

Author: Yair Altman

Published: 2019-03-31T10:15:06Z

Content type: opinion

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [medium-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions.md>), [medium-risk-of-breaking-in-future-versions-undocumented-feature](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions-undocumented-feature.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [programming](<https://devfeed.tech/tags/programming.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

### AI overview

This article presents a Matlab code puzzle about conditional operators, evaluation behavior, operand order, and parentheses. It invites readers to predict and then run the code, highlighting how the results provide insight into Matlab's parser.

### Source excerpt

A simple Matlab puzzle that leads to interesting insight on Matlab's parser. The post Interesting Matlab puzzle appeared first on Undocumented Matlab. Related posts: Interesting Matlab puzzle - analysis Solution and analysis of a simple Matlab puzzle that leads to interesting insight on Matlab's parser. ... An interesting uitree utility ExploreStruct is a utility that shows how custom uitrees can be integrated in Matlab GUI... A couple of internal Matlab bugs and workarounds A couple of undocumented Matlab bugs have simple workarounds. ... Matlab DDE support Windows DDE is an unsupported and undocumented feature of Matlab, that can be used to improve the work-flow in the Windows environment...

## Kotlin-Java Interop Can Cause Recursive Property Calls

DevFeed: [Kotlin-Java Interop Can Cause Recursive Property Calls](<https://devfeed.tech/articles/kotlin-stackoverflow-error-28672.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2018/11/01/kotlinstackoverflow/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2018-11-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Java](<https://devfeed.tech/topics/java.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>)

Tags: [android-studio](<https://devfeed.tech/tags/android-studio.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [legacy-code](<https://devfeed.tech/tags/legacy-code.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [recursion](<https://devfeed.tech/tags/recursion.md>), [stackoverflow](<https://devfeed.tech/tags/stackoverflow.md>)

### AI overview

This article explains how Kotlin-Java interop can cause a property access to call itself recursively when inheriting from a Java class. It examines the resulting bytecode and notes that Android Studio can warn about the recursion.

### Source excerpt

Java interop is one of the best features of the Kotlin language, yet sometimes this also can cause unforeseen issues... Puzzle # Disclaimer, the example below is a consequence of legacy code and only serves to demonstrate a Kotlin puzzler.

## A Kotlin lambda syntax pitfall that prevents animation updates

DevFeed: [A Kotlin lambda syntax pitfall that prevents animation updates](<https://devfeed.tech/articles/a-little-kotlin-puzzler-28670.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2018/09/25/kotlinpuzzler/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2018-09-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Programming language](<https://devfeed.tech/topics/programming-language.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [blogs](<https://devfeed.tech/tags/blogs.md>), [code](<https://devfeed.tech/tags/code.md>), [function](<https://devfeed.tech/tags/function.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [lambda](<https://devfeed.tech/tags/lambda.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

This Kotlin puzzle explains why a progress bar fails to animate: a lambda is registered instead of invoking the method that handles animation updates. Changing the syntax so the method is called fixes the behavior.

### Source excerpt

Kotlin is an incredibly enjoyable, concise and powerful programming language. Yet sometimes also a bit confusing... Puzzle # Have a look at the simple class below.

## Advent of Code 2016

DevFeed: [Advent of Code 2016](<https://devfeed.tech/articles/advent-of-code-2016-40525.md>)

Original publisher: [Read original article](<http://nbviewer.ipython.org/url/norvig.com/ipython/Advent%20of%20Code.ipynb>)

Published: 2016-12-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Code Challenge](<https://devfeed.tech/topics/code-challenge.md>), [Jupyter Notebook](<https://devfeed.tech/topics/jupyter-notebook.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [code](<https://devfeed.tech/tags/code.md>), [jupyter-notebook](<https://devfeed.tech/tags/jupyter-notebook.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [solutions](<https://devfeed.tech/tags/solutions.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

Peter Norvig documents his solutions to the Advent of Code puzzles released from December 1 through December 25, 2016. The notebook includes preparation, utility functions, tests, and selected explanations of his solving approach.

### Source excerpt

Solutions to the puzzle site.

## Advent of Code 2017

DevFeed: [Advent of Code 2017](<https://devfeed.tech/articles/advent-of-code-2017-40596.md>)

Original publisher: [Read original article](<https://github.com/norvig/pytudes/blob/master/ipynb/Advent%202017.ipynb>)

Published: 2016-12-24T00:00:00Z

Content type: article

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [2017](<https://devfeed.tech/tags/2017.md>), [advent-of-code](<https://devfeed.tech/tags/advent-of-code.md>), [code](<https://devfeed.tech/tags/code.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [solutions](<https://devfeed.tech/tags/solutions.md>)

### AI overview

A collection of solutions to the Advent of Code 2017 puzzle site.

### Source excerpt

Solutions to the puzzle site.

## How Ada Lovelace solved problems

DevFeed: [How Ada Lovelace solved problems](<https://devfeed.tech/articles/how-ada-lovelace-solved-problems-35306.md>)

Original publisher: [Read original article](<https://darkcoding.net/ideas/how-ada-lovelace-solved-problems/>)

Author: Graham King

Published: 2015-12-11T05:02:00Z

Content type: article

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Ada](<https://devfeed.tech/topics/ada.md>), [Mathematics](<https://devfeed.tech/topics/mathematics.md>)

Tags: [ideas](<https://devfeed.tech/tags/ideas.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [problems](<https://devfeed.tech/tags/problems.md>), [program](<https://devfeed.tech/tags/program.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [solve](<https://devfeed.tech/tags/solve.md>)

### AI overview

This article recounts how Ada Lovelace worked on a mathematics problem related to the Analytical Engine and documented what is described as the first known computer program for calculating Bernoulli numbers. When she became stuck, she went horseback riding and expected the problem to become clearer later.

### Source excerpt

Ada Lovelace: Debugging by horseback since 1843.

## Exploring Variations on the Cheryl's Birthday Logic Puzzle

DevFeed: [Exploring Variations on the Cheryl's Birthday Logic Puzzle](<https://devfeed.tech/articles/when-cheryl-met-eve-a-birthday-story-40526.md>)

Original publisher: [Read original article](<http://nbviewer.ipython.org/url/norvig.com/ipython/Cheryl-and-Eve.ipynb>)

Published: 2015-05-13T00:00:00Z

Content type: article

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>), [Code](<https://devfeed.tech/topics/code.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [function](<https://devfeed.tech/tags/function.md>), [logic](<https://devfeed.tech/tags/logic.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>)

### AI overview

This notebook explores variations of the Cheryl's Birthday logic puzzle by using code to verify generated date lists, randomly construct new puzzles, measure solution outcomes, and introduce a new character named Eve.

### Source excerpt

An extended exploration beyond the popular "Cheryl's Birthday" logic puzzle.

## Cheryl's Birthday (How to Solve It with Code)

DevFeed: [Cheryl's Birthday (How to Solve It with Code)](<https://devfeed.tech/articles/cheryl-s-birthday-how-to-solve-it-with-code-40527.md>)

Original publisher: [Read original article](<http://nbviewer.ipython.org/url/norvig.com/ipython/Cheryl.ipynb>)

Published: 2015-04-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Python](<https://devfeed.tech/topics/python.md>), [Code](<https://devfeed.tech/topics/code.md>), [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [computer](<https://devfeed.tech/tags/computer.md>), [functions](<https://devfeed.tech/tags/functions.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [logic](<https://devfeed.tech/tags/logic.md>), [programming](<https://devfeed.tech/tags/programming.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

A tutorial that solves the Cheryl's Birthday logic puzzle by translating its statements and possible dates into Python code. It explains how computational enumeration can verify the puzzle's conditions and support problem solving.

### Source excerpt

A solution to the popular "Cheryl's Birthday" logic puzzle.

## How theoretical computer science explains the complexity of puzzle games

DevFeed: [How theoretical computer science explains the complexity of puzzle games](<https://devfeed.tech/articles/want-to-make-a-great-puzzle-game-get-inspired-by-theoretical-computer-science-40351.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2014/03/17/want-to-make-a-great-puzzle-game-get-inspired-by-theoretical-computer-science/>)

Published: 2014-03-17T10:00:55Z

Content type: opinion

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [computational complexity](<https://devfeed.tech/topics/computational-complexity.md>), [Algorithms, Complexity](<https://devfeed.tech/topics/algorithms-complexity.md>), [Computer science](<https://devfeed.tech/topics/computer-science.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Mazes](<https://devfeed.tech/topics/maze.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [art-gallery-problem](<https://devfeed.tech/tags/art-gallery-problem.md>), [bin-packing](<https://devfeed.tech/tags/bin-packing.md>), [board-games](<https://devfeed.tech/tags/board-games.md>), [computational-complexity](<https://devfeed.tech/tags/computational-complexity.md>), [computer](<https://devfeed.tech/tags/computer.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [exp](<https://devfeed.tech/tags/exp.md>), [game](<https://devfeed.tech/tags/game.md>), [games](<https://devfeed.tech/tags/games.md>), [games-on-graphs](<https://devfeed.tech/tags/games-on-graphs.md>), [graph-coloring](<https://devfeed.tech/tags/graph-coloring.md>), [greedy-spiders](<https://devfeed.tech/tags/greedy-spiders.md>), [mario](<https://devfeed.tech/tags/mario.md>), [nintendo](<https://devfeed.tech/tags/nintendo.md>), [np](<https://devfeed.tech/tags/np.md>), [np-completeness](<https://devfeed.tech/tags/np-completeness.md>), [np-hard](<https://devfeed.tech/tags/np-hard.md>), [pancake-flipping](<https://devfeed.tech/tags/pancake-flipping.md>), [pspace](<https://devfeed.tech/tags/pspace.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [science](<https://devfeed.tech/tags/science.md>), [starcraft](<https://devfeed.tech/tags/starcraft.md>), [video-games](<https://devfeed.tech/tags/video-games.md>)

### AI overview

The article explains that NP-hardness in games describes worst-case computational complexity, not how difficult a game is for human players. It uses examples including Pokémon, Super Mario Bros., Candy Crush Saga, Pac-Man, Doom, Starcraft, Tetris, chess, checkers, and Go to discuss hardness results and practical algorithms.

### Source excerpt

Two years ago, Erik Demaine and three other researchers published a fun paper to the arXiv proving that most incarnations of classic nintendo games are NP-hard. This includes almost every Super Mario Brothers, Donkey Kong, and Pokemon title. Back then I wrote a blog post summarizing the technical aspects of their work, and even gave a talk on it to a room full of curious undergraduate math majors. But while bad tech-writers tend to interpret NP-hard as "really really hard," the truth is more complicated.

## Python Puzzle Solutions

DevFeed: [Python Puzzle Solutions](<https://devfeed.tech/articles/python-puzzle-solutions-29433.md>)

Original publisher: [Read original article](<http://akaptur.github.com/blog/2013/10/31/python-puzzle-solutions/>)

Published: 2013-10-31T17:47:00Z

Content type: article

Language: en

Sources: [Allison Kaptur](<https://devfeed.tech/sources/allison-kaptur.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [test](<https://devfeed.tech/topics/test.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [blog-post](<https://devfeed.tech/tags/blog-post.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [python](<https://devfeed.tech/tags/python.md>), [solutions](<https://devfeed.tech/tags/solutions.md>)

### AI overview

The article clarifies the rules for a Python puzzle and discusses submitted solutions, including Jessica McKellar's stateful solution and a correction that it passes the order test.

### Source excerpt

I really enjoyed seeing all the clever solutions to the python puzzle I posted. You're all very creative! Here's a discussion of the solutions I've seen, plus some clarifications. All spoilers are below the fold. First, clarifications. (These weren't always clear in the problem statement, particularly if you got the problem off of twitter, so award yourself full marks as desired.) Order doesn't matter "Order doesn't matter" means that the three-line version always returns False, and the semicolon version always returns True. You control only the contents of the lines Several people, including Pepijn De Vos, David Wolever, and diarmuidbourke suggested something like the following: 1 2 3 4 5 6 >>> """a; b; c""" == 'a; b; c' True >>> """a ... b ... c""" == 'a; b; c' False I'm being pedantic here, but I rule this cheating, since (a) each line has to be a valid python expression or statement, and a multi-line string literal is only one expression, and (b) the string """a; b; c""" is not the same as the string """a\nb\nc""". Solutions appear below the fold. Solutions! Jessica McKellar Jessica suggests the following solution: 1 2 3 4 5 6 7 8 9 10 11 12 13 >>> global a >>> a = a + "a" if "a" in globals() else "" >>> print(bool(len(a) % 3)) False >>> global a; a = a + "a" if "a" in globals() else ""; print(bool(len(a) % 3)) True >>> def my_function(): ... global a ... a = a + "a" if "a" in globals() else "" ... print(bool(len(a) % 3)) ... >>> my_function() True However, Jessica's solution fails the "order doesn't matter" test, and it is stateful: 1 2 3 4 >>> global a; a = a + "a" if "a" in globals() else ""; print(bool(len(a) % 3)) False >>> global a; a = a + "a" if "a" in globals() else ""; print(bool(len(a) % 3)) True Edit: As Jessica points out, I'm wrong here: her solution does pass the order test. She also notes that the restriction against state wasn't present in the blog post (and she didn't see the original tweet). Full credit to Jessica, then! Javier Novoa Cataño Ja

## A Python puzzle

DevFeed: [A Python puzzle](<https://devfeed.tech/articles/a-python-puzzle-29432.md>)

Original publisher: [Read original article](<http://akaptur.github.com/blog/2013/10/29/a-python-puzzle/>)

Published: 2013-10-30T02:40:00Z

Content type: article

Language: en

Sources: [Allison Kaptur](<https://devfeed.tech/sources/allison-kaptur.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Code](<https://devfeed.tech/topics/code.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [function](<https://devfeed.tech/tags/function.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [python](<https://devfeed.tech/tags/python.md>), [rules](<https://devfeed.tech/tags/rules.md>), [stateful](<https://devfeed.tech/tags/stateful.md>)

### AI overview

A Python puzzle challenges readers to find three valid Python expressions that produce different results when run separately, on one line with semicolons, and inside a function. The solution must avoid introspection, dunder methods, order dependence, and stateful behavior.

### Source excerpt

A couple of Hacker Schoolers were discussing an interesting corner of python today. We discovered a nice bit of trivia: there exist three lines of python code that display the following behavior: 1 2 3 4 5 6 7 8 9 10 11 12 >>> LINE_A >>> LINE_B >>> LINE_C False >>> LINE_A; LINE_B; LINE_C True >>> def my_function(): ... LINE_A ... LINE_B ... LINE_C >>> my_function() True What are the lines? Some ground rules: Introspection of any kind is cheating (e.g. noting the line number). No dunder (__foo__) methods allowed. Each line is a valid python expression. You can't rely on order: while the lines will always execute A -> B -> C, a complete solution behaves identically if e.g. the semicolon version happens before the separate-line version. No cheating with the function: e.g. you can't add a return unless you add it everywhere. Edit: And nothing stateful. For bonus points, code golf! My solution to this is 14 19 characters long, not counting whitespace.

## Java Puzzle: Square Root

DevFeed: [Java Puzzle: Square Root](<https://devfeed.tech/articles/java-puzzle-square-root-15729.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/java-puzzle-square-root>)

Author: Square Engineering

Published: 2013-03-19T16:02:00Z

Content type: article

Language: en

Sources: [Square Corner Blog](<https://devfeed.tech/sources/square-corner-blog-medium.md>), [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [code](<https://devfeed.tech/tags/code.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>)

### AI overview

A Java programming puzzle challenges readers to reach a call to SquareRoot.answer and calculate the square root of a huge number without directly inspecting it. The solution must be a separate Java file that runs with the security manager enabled on JDK 6 or 7, without using setAccessible or exploiting JDK vulnerabilities.

### Source excerpt

Show your Java-fu by calculating the unknown.

## Date puzzle for starters

DevFeed: [Date puzzle for starters](<https://devfeed.tech/articles/date-puzzle-for-starters-34395.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2010/10/date-puzzle-for-starters/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2010-10-08T08:00:00Z

Content type: article

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [function](<https://devfeed.tech/topics/function.md>), [IRC](<https://devfeed.tech/topics/irc.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [exercise](<https://devfeed.tech/tags/exercise.md>), [function](<https://devfeed.tech/tags/function.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>)

### AI overview

A PostgreSQL date puzzle explores how to identify the nth occurrence of a specified weekday within a month. The article discusses an unfinished function and leaves improvements--such as supporting multiple nth weekdays--as an exercise for readers.

### Source excerpt

The PostgreSQL IRC channel is a good place to be, for all the very good help you can get there, because people are always wanting to remain helpful, because of the off-topics discussions sometime, or to get to talk with community core members. And to start up your day too. This morning's question started simple : "how can I check if today is the "first sunday fo the month". or "the second tuesday of the month" etc?"

[Next page](<https://devfeed.tech/tags/puzzle.md?cursor=WyIyMDEwLTEwLTA4VDA4OjAwOjAwKzAwOjAwIiwgImY3MDRkYTE4LWZhMGQtNGUwZS05NTI1LTliYzAwN2JhYzVkNyJd>)