Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (4 sloc) 309 Bytes

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".