← All problemsSign in

21FA - 09 Polar Bear Testing

The local zoo is currently experiencing problems with its polar bears: out of a certain number of bears, one has a disease that will eventually make it shrink to the size of an atom. We wouldn’t want that!   There are some number of polar bears, and exactly one of them is sick. To test whether a polar bear is sick, a device can be used to take samples from a subset of polar bears. If one of the

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