Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: clojure
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (4 sloc) 0.309 kb

The Drunken Cockroach Problem

The problem is to measure how long it takes a drunken cockroach to touch each tile of a floor of square tiles which is N tiles wide and M tiles long.

In addition, we want to know how many times our drunken cockroach has touched each tile.

From "Smalltalk-80: The Language".

Jump to Line
Something went wrong with that request. Please try again.