PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Bnp

How do you split coins to match heads?

Last updated: Mar 29, 2026

Quick Overview

This question evaluates logical reasoning about invariants and combinatorial parity, testing the candidate's ability to design deterministic strategies under partial information; it falls under Software Engineering Fundamentals with relevance to probability and discrete mathematics for a Data Scientist role.

  • easy
  • Bnp
  • Software Engineering Fundamentals
  • Data Scientist

How do you split coins to match heads?

Company: Bnp

Role: Data Scientist

Category: Software Engineering Fundamentals

Difficulty: easy

Interview Round: Technical Screen

There are **N** coins on a table. You are told that exactly **H** of them are heads-up (you do not know which ones). You must split the coins into **two piles** so that the **number of heads-up coins is the same in both piles**. You are allowed to flip any coins you choose. Describe a strategy that always works and justify why it works.

Quick Answer: This question evaluates logical reasoning about invariants and combinatorial parity, testing the candidate's ability to design deterministic strategies under partial information; it falls under Software Engineering Fundamentals with relevance to probability and discrete mathematics for a Data Scientist role.

Related Interview Questions

  • Explain and compute option delta - Bnp (easy)
  • Find expected tosses to see a coin pattern - Bnp (easy)
  • Compute expected max/min of n die rolls - Bnp (easy)
Bnp logo
Bnp
Jan 5, 2026, 12:00 AM
Data Scientist
Technical Screen
Software Engineering Fundamentals
1
0

There are N coins on a table. You are told that exactly H of them are heads-up (you do not know which ones). You must split the coins into two piles so that the number of heads-up coins is the same in both piles. You are allowed to flip any coins you choose.

Describe a strategy that always works and justify why it works.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Bnp•More Data Scientist•Bnp Data Scientist•Bnp Software Engineering Fundamentals•Data Scientist Software Engineering Fundamentals
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.