Rocks are falling from the sky! You get an
array
of columns: rockso
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###...', ...]
wheremap[2][5]
translates to the rock atx: 2, y: 5
return
the result after all rocks have stopped moving.