Re: [algogeeks] algo qstn

2012-01-17 Thread Umer Farooq
0 On 1/16/12, Ravi Ranjan wrote: > An ant moves on a regular grid of squares that are coloured either black or > white. > The ant is always oriented in one of the cardinal directions (left, right, > up or down) and moves from square to adjacent square according to the > following rules: > - if it

[algogeeks] algo qstn

2012-01-16 Thread Ravi Ranjan
An ant moves on a regular grid of squares that are coloured either black or white. The ant is always oriented in one of the cardinal directions (left, right, up or down) and moves from square to adjacent square according to the following rules: - if it is on a black square, it flips the color of th