devdating.net Solution

From http://devdating.net/

rocksRocks are falling from the sky! You get an array of columns: rocks o and platforms #
Simulate rocks’ flight until they hit a platform, another rock or the bottom. Platforms stay put.
map is an array in the format ['ooo###...', ...] where map[2][5] translates to the rock at x: 2, y: 5
return the result after all rocks have stopped moving.

Leave a Reply

Your email address will not be published. Required fields are marked *