I expected the 2026 World Cup bracket to be a sorting problem.

It turned out to be a sorting problem plus a lookup table.

I recently worked on a small World Cup 2026 bracket project, and the strangest part was not building the knockout bracket itself. It was handling the third-placed teams.

The new format has:

48 teams