Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • OOP & Testbench Puzzles25
  • Concurrency & Timing Puzzles25
  • Randomization & Constraint Puzzles25
  • SVA Assertion Puzzles25
  • Functional Coverage Puzzles25
  • Logic & Aptitude Puzzles25
    • Classic Brain Teasers
    • Probability Puzzles
      • Biased Coin to Fair Bit (Von Neumann)
      • Expected Tosses Until First HH
      • Two Children, At Least One Boy
      • Monty Hall Switching Odds
      • Birthday Collision Threshold
      • Bayes on Failing Test Alerts
    • Digital Logic Puzzles
    • Debugging Riddles
    • Logic & Aptitude Puzzles: Tricky Q&A
  • Scenario & Debug Puzzles25
  • Interview Prep: Puzzle Rounds5
  • DV Puzzle Cheatsheet
Loading lesson

‹Probability Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. Logic & Aptitude Puzzles
  4. Probability Puzzles
  5. Birthday Collision Threshold

VLSI DV Interview Puzzles · All levels

Birthday Collision Threshold

How many people are needed so that probability of at least one shared birthday exceeds 50%? Ignore leap years and assume uniform birthdays.

On this page

    Puzzle

    Difficulty: Medium · Puzzle 5 of 6 · Topic: Probability Puzzles

    How many people are needed so that probability of at least one shared birthday exceeds 50%? Ignore leap years and assume uniform birthdays.

    Hint

    Compute complement first: all birthdays distinct.

    Step-by-step solution

    Diagram
    1) For n people, P(no match) = product_{k=0 to n-1} (365-k)/365.
    2) P(at least one match) = 1 - P(no match).
    3) Evaluate around n=23: P(no match) approx 0.4927.
    4) So P(match) approx 1 - 0.4927 = 0.5073.
    5) At n=22 this value is still below 0.5, so threshold is 23.

    Answer

    Answer: 23 people are needed for probability > 50% of a shared birthday.

    Why candidates get it wrong

    Linear intuition ('365/2') ignores pairwise combinations growing as n(n-1)/2.

    Interviewer follow-up

    Approximate n for 99% collision probability.

    Related topics

    • Back to Probability Puzzles

    • Logic & Aptitude Puzzles section

    Previous

    165 / 210

    Next: Bayes on Failing Test Alerts

    Up next

    Up nextBayes on Failing Test Alerts

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Biased Coin to Fair Bit (Von Neumann)
    • Expected Tosses Until First HH
    • Two Children, At Least One Boy