← All problemsSign in

Alex and his Chemical Pits

Problem Description Alex is an alien who lives on Mars.His planet have very large pits.The pits contain different chemicals. The pits are located in two parallel lanes.The number of pits on each lane are equal.The location of a pit is represented by its x-coordinate. Let the pits on first lane be denoted by a(1),a(2),a(3)......so on and similarly pits on the second lane be denoted by b(1),b(2),

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