Update on October Dec 4: Huge thanks to everyone who participated in the challenge. The correct answer is that 45 of the sets were impossible to put into the grid.
We received 70 responses from 68 users. Of the 68 users, 44 provided the correct response (65%). Quite a few users submitted code but didn't include the output so we could not identify (easily) if their response was correct or not.
Congrats to the following users for the correct response:
Nanigashi, M--, BillBokeey, Jannik S., mousetail, Dmitrii Bychenko, Kenzo Staelens, Apocalisp, Glory2Ukraine, Data31, mch, yasd, Rémi, Noldorin, F43nd1r, DarthGizka, Oliver, FrogMog, slowdancer, DonClaveau, mclayton, Jakkapong Rattananen, Kedar Mhaswade, isrnick, TJR, cmd, Mapezz, Jefflee0915, dumbledad, iso53, doej1367, ValNik, HolKann, Mando Мандо, dirdi, Pixievolt No. 1, Izek H, Random3c0d3, Scott Boston, KPEKEP, hyj, elechris, Alex, shaun_m
We also noticed that DarthGizka put a lot of effort to explore interesting avenues in this problem and help other users with their entries. Thank you for being a great community member.
Original Challenge
Image designed by macrovector / Freepik
Credit to @JMP for contributing this challenge idea! (Which we slightly modified.)
In this challenge, we will sort some numbers onto a 6x6 square grid. Each cell will have one number.
Your challenge is to place all the integers into the grid such that
Each row is descendingly sorted (ties are not allowed). For example: 6 5 4 3 2 1 is valid but 6 5 5 5 3 2 is not valid.
Each column is descendingly sorted (ties are not allowed)
or declare this impossible.
Example on a 3x3 grid: Given these numbers to sort [95, 75, 75, 74, 74, 74, 54, 45, 40]
A valid response would be [[95, 75, 74], [75, 74, 54], [74, 45, 40]]
In the attached file, we have 100 sets of 36 random integers. The integers are between 0 and 99. For each set, return either a valid sorting on a 6x6 grid or declare it impossible.
Please also return the total count of cases for which the sorting was impossible.
Rules:
All correct responses will be designated as winners
Challenge deadline is December 3, 2025
Please include your code as well as a small description of your approach and anything interesting you encountered
Your entry is not permitted to be written by AI. For any feedback on this Challenge, please head over to the Meta post.
Have fun and thanks for participating!
