← Flipkart questions

Minimum moves to reach destination

Filed under Flipkart

Given a route string consisting of directions 'N', 'E', 'S', and 'W', find the net displacement vector and output a lexicographically sorted string of directions that achieves the same net…

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.