Become a fan of Slashdot on Facebook


Forgot your password?

Submission + - Coding competition. Like checkmate in five

Peter (Professor) Fo writes: You know those chess puzzles that go 'Black to move, checkmate in five', what about code-fixing of a spot the bug type puzzle that might go: 'Add two sets of brackets to ...' or 'Add one line of not more than ten characters to fix this sort routine.' or 'rewrite the inner function to increase the speed by an order of magnitude by changing up to four lines'

This is the sort of mental challenge that should be bread and butter to programmers, can be set at different levels of difficulty and provide a diversion from our own bloody code-knots. The emphasis to be on coding algorithms rather than stupid bugs or quirks.

I'm curious too know if there is a home for such puzzles, people have examples and if anyone would be generally interested.
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Coding competition. Like checkmate in five

Comments Filter:

Radioactive cats have 18 half-lives.