โ† Samsung questions

Color of the last ball remaining in a bag

Filed under Samsung

The question

A bag contains white and black balls. You repeatedly pick 2 balls without replacing them: if they are the same color, you put back a white ball; if they are different colors, you put back a black ball. Determine the color of the final remaining ball.

No write-up yet. Related questions below have one.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.