What approach would you take to generate seven numbers with equal probability from a binary function?
Also asked as "Using a binary function with probabilities p and (1-p), how could you generate seven numbers with uniform probability?"
Also asked as "Using a binary function with probabilities p and (1-p), how could you generate seven numbers with uniform probability?"
More interviews, more skills, more success.
2 answers from the community
Answer any un-answered question from our database to unlock all community answers for 30 days.
Answer any un-answered question from our database to unlock all community answers for 30 days.
2 answers published. Last candidate submission on Feb 8 2026, 11:12am PDT. Interview question asked to Data Scientists interviewing at Commvault, Fujitsu, Avito and other companies. Original question asked: What approach would you take to generate seven numbers with equal probability from a binary function?. Question last reported by a candidate interviewing at IBM for a Data Scientist interview on Oct 10 2023, 11:32pm PDT.