Skip to main content
All Questions

You must buy one unit at each of n times, at a Uniform(a, b) market price you see first or from a broker at fixed price p, at most k times. Compute the expected optimal cost.

Unlock detailed company stats for this questionUpgrade
You must buy n units, one at each of n distinct times. At each time the market price is an independent Uniform(a, b) draw seen before you decide; you either buy at that price or use a broker who sells at a fixed price p, but only at most k times in total. Given n, a, b, k and p, return the expected total price you pay (execution cost) under optimal play.

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.