Wierd Direction
CodeChefOpen on judge ↗
Given a string consisting of instructions in the form of characters N, E, W, and S. denoting **North, East, West, and South**. In one move Taru can follow an order which Tan has given. An order is defined as a single character denoting that Taru has to move in that direction. Tan has given Taru a set of instructions in the form of a string. Since the number of instructions can be large Taru decid
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start