FactSet | Coding Question | Compute Area created by a sequence of moves.
Anonymous User
1365

You are given a stream of directions in [up, down, left , right]. Each direction means move one unit in that direction. After completing the movements, you will return to the position where you started (0, 0).

Compute the area of the shape you created.

Anyone has any idea how to do this one?

Thanks,

Comments (2)