As many brothers as sisters
A boy says: "I have as many brothers as sisters." His sister says: "I have twice as many brothers as sisters."
How many boys and how many girls are in the family? Set up the two statements carefully, remembering who is and is not counting themselves, and check your answer against both.
Show a hint
When the boy counts his brothers, he does not count himself. When the sister counts her sisters, she does not count herself.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Twice as old as you were when I was your ageThe bat and the ballA brick weighs a kilo plus half a brickThe two ferries and the width of the riverThat man's father is my father's son
All questions →