Skip to main content
All Questions

n uniform random values are revealed one at a time and you must guess each one's final rank as it appears. What is the best strategy, and how likely are you to get them all right?

Unlock detailed company stats for this questionUpgrade
n iid Uniform(0,1) values x_1, ..., x_n are revealed one at a time. As each x_i is revealed you must immediately guess its final rank r_i among all n values, having seen only x_1..x_i. You win only if every guess is right. What is the optimal strategy and what is the probability of winning?

Community answers

No answers contributed by the community yet.

Related courses

Course

SQL Interview Prep Course

Prepare for SQL interviews with lessons on joins, aggregations, and window functions, then practice real SQL interview questions in an interactive editor with expert solutions.

Course

Data Science Interview Prep

Land your dream data science role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Practice statistics, experimentation, coding, SQL, machine learning, behavioral interviews, and more.