← Flipkart questions

Shortest Direction Moves

Filed under Flipkart

Given a string of route directions containing North, South, East, and West, find the net displacement and reduce it to the minimum equivalent moves, returning the result as a lexicographically sorted…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.