FactSet | Coding Question | Compute Area created by a sequence of moves.
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2020-05-14Added By Anonymous
Source: Link
Company: FactSet
Role: unknown
Interview Stage: Coding Question
Location: unknown
Year: unknown
Original Experience:
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,
Role: unknown
Interview Stage: Coding Question
Location: unknown
Year: unknown
Original Experience:
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,