mathspp blog

428 460,674 38,250
articles words lines of code

Can you find the fake ball by weighing it?

Can you tile a chessboard with two missing squares?

How many queens and knights can you place on a chessboard?

This article is an in-depth analysis of Python solutions to the “Sonar Sweep” problem, which is day 1 of Advent of Code 2021.

Today I learned about the symmetry in indexing from the beginning and end of a list with the bitwise invert operator.

In how many ways can you place 8 queens on a chessboard?

This article will teach you about the minimax algorithm and alpha-beta pruning, from a beginner's perspective.

Today I learned about the DARPA network challenge and the power of referral systems.

This is a short article on how I quickly used APL to verify my combinatorics calculations.

Can you make the pyramid point the other way by moving only three coins?

Can you help these kids trick or treat their entire neighbourhood in this Halloween special?

Today I learned that Python 3.5+ supports the operator @ for matrix multiplication.

Can you draw 4 triangles in this 5 by 5 grid, covering all dots?

Today I learned about the math.nextafter method.

Figure out the number I'm thinking of with a single question!

Today I learned how to do ceiling division in Python just with //.

Can you solve this simple-looking arithmetic challenge?

If I scramble a Rubik's cube for long enough, will it solve itself?

Can you solve this little minesweeper puzzle?

It's night time and 4 friends need to cross a fragile bridge, but they only have one torch. What's the order in which they should cross?