Fidelity Investments Interview Question

Travel Directions Reduction. Given an array of characters representing the four directions, return a simplified array that gets you to the same place.

Interview Answer

Anonymous

Jun 17, 2020

N and S cancel each other out, so do E an d W.