ODI Cricket
You have a cricket team with $N$ players, each numbered from $1$ to $N$. The batting lineup is a specific order of these players in which they bat, where, the first **two** are the openers. When a wicket falls, the next player in the lineup comes in to bat. If there is no person left in the lineup when a wicket falls, the team is considered *all out*. Note that: - The team is considered all-o
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