← All problemsSign in

Cowboy

Problem Statement The great cowboy of the wild west "BLACK JACK" wants to train his horses running along a long straight track in the Westland. Each horse can starts at a distinct position on the track, and can runs at distinct speed. The track is divided into lanes so that horses may move past each other. No two horses in the same lane may never occupy the same position. BLACK JACK doesn't want

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start