Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

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:

One good reason why computers can do more work than people is that they never have to stop and answer the phone.