← All problemsSign in

Brothers Love

Two brothers Mike and Otis is buying Lottery ticket from a Lottery shop. Both of them choose their favourite digit between $0$ to $9$ inclusive, say $A$ and $B$. They will buy a ticket from the shop which contains their favourite digit and is minimum. Lets say Mike choose $9$ as his favourite digit and Otis choose $1$ as his favourite digit , So they will buy the ticket with number $19$ on it.

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