Mystery Function

codeset.ai

41 points by andre15silva 3 days ago


supermdguy - 3 days ago

More fun than Wordle for me! Got me thinking about the Kolmogorov complexity, it would be interesting to get a set of input/output pairs, and try to create the smallest program that can match each of them.

someonebaggy - 3 hours ago

Scrolling down to reach the HTML keyboard, and then back up to see what I typed, is obnoxious. I have a keyboard installed, and it doesn't pop up because something on the page tells my browser it doesn't need to. Was this vibecoded?

zenburnmyface - 5 hours ago

tip: for suspected permutations, like use a string like "1234567"

trjordan - 3 hours ago

I totally expected to have to write the python for it, not just solve a couple more :P

NooneAtAll3 - 2 hours ago

I feel like there's a missed opportunity for "Wason 2–4–6"-style gotchas

I'd love to see functions that are "obvious" when all your tests have the same quality you never tested without

like f.e. testing with all characters distinct ("abcd" or "123456789") seems like an obvious strategy to see where each character goes - but function may be grouping same letters together and you'll never know