Data Interview Qs - Assigned flight seating

InterviewQs

Assigned flight seating

Probability Theory Probability Reasoning

Forward this email to a friend or colleague and challenge them to solve it.

Hi, 

Suppose there are 100 passengers waiting to board a flight. The flight has exactly 100 seats, and each seat is reserved for a passenger. However, when the first passenger boards they decide to sit in a randomly chosen seat instead of their assigned seat (with all seats equally likely). Each passenger thereafter takes their assigned seat if it's available, otherwise they too sit in a randomly chosen seat.

Given this information, what is the probability that the final passenger to board the flight ends up sitting in their assigned seat?



 

You’ve accumulated 326 questions since joining our email list. Create a premium account to access detailed solutions to each problem (including this one) + our new Case studies.


Was this email forwarded to you? You can join our list here to receive questions

How did you like today's question?

15411 Boischatel, Montreal, QC, H9H1Y7, Canada
Don't want to get these emails anymore? We'll forgive you if you unsubscribe

Older messages

Cumulative cash flows

Friday, July 29, 2022

SQL, Database Querying, Window Function, Cumulative Sum, InterviewQs Cumulative cash flows SQL Database Querying Window Function Cumulative Sum Forward this email to a friend or colleague and challenge

Modeling an epidemic

Wednesday, July 27, 2022

Python, Differential equations, Modeling, Stochastic Processes, InterviewQs Modeling an epidemic Python Differential equations Modeling Stochastic Processes Forward this email to a friend or colleague

Number of characters to create a palindrome

Monday, July 25, 2022

Python, Recursion, Python Functions, Algorithms, InterviewQs Number of characters to create a palindrome Python Recursion Python Functions Algorithms Forward this email to a friend or colleague and

Stationary distribution of AMZN stock

Friday, July 22, 2022

Python, Data Analysis, Pandas, Markov Chain, Stochastic Processes, Modeling, InterviewQs Stationary distribution of AMZN stock Python Data Analysis Pandas Markov Chain Stochastic Processes Modeling

Total revenue by location

Wednesday, July 20, 2022

SQL, Database Querying, Joining Tables, InterviewQs Total revenue by location SQL Database Querying Joining Tables Forward this email to a friend or colleague and challenge them to solve it. Hi,

I spent a year designing a low profile, minimal mechanical keyboard — and Learn to sew your own outdoor gear

Thursday, August 18, 2022

Issue #863 — Top 20 stories of August 19, 2022 Issue #863 — August 19, 2022 You receive this email because you are subscribed to Hacker News Digest. You can open it in the browser if you prefer. 1 I

HBO Max is pulling 36 shows this week — Here's the list

Thursday, August 18, 2022

TechCrunch Newsletter TechCrunch logo The Daily Crunch logo By Christine Hall and Haje Jan Kamps Thursday, August 18, 2022 G'day, crunch bunch! We're both starting to get a little bit excited

📱 Issue 320 - Structs, Classes, and Actors in iOS Interviews - Holy Swift

Thursday, August 18, 2022

This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 320 Release Date Aug 18, 2022 Your weekly report of the most popular iOS news, articles and projects Popular

💻 Issue 319 - Microsoft and Canonical announce native .NET availability in Ubuntu 22.04 hosts and containers

Thursday, August 18, 2022

This week's Awesome .NET Weekly Read this email on the Web The Awesome .NET Weekly Issue » 319 Release Date Aug 18, 2022 Your weekly report of the most popular .NET news, articles and projects

💎 Issue 326 - Requiring MFA on popular gem maintainers

Thursday, August 18, 2022

This week's Awesome Ruby Newsletter Read this email on the Web The Awesome Ruby Newsletter Issue » 326 Release Date Aug 18, 2022 Your weekly report of the most popular Ruby news, articles and

💻 Issue 326 - Building a chat app with Socket.io and React 🚀

Thursday, August 18, 2022

This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 326 Release Date Aug 18, 2022 Your weekly report of the most popular Node.js news, articles and

💻 Issue 326 - Introducing the Markdown Language Server

Thursday, August 18, 2022

This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 326 Release Date Aug 18, 2022 Your weekly report of the most popular JavaScript news, articles

💻 Issue 321 - Rust in Perspective

Thursday, August 18, 2022

This week's Awesome Rust Weekly Read this email on the Web The Awesome Rust Weekly Issue » 321 Release Date Aug 18, 2022 Your weekly report of the most popular Rust news, articles and projects

💻 Issue 244 - Building a chat app with Socket.io and React 🚀

Thursday, August 18, 2022

This week's Awesome React Weekly Read this email on the Web The Awesome React Weekly Issue » 244 Release Date Aug 18, 2022 Your weekly report of the most popular React news, articles and projects

📱 Issue 323 - DocC Interactive Tutorials — How to create an iOS framework Pt5

Thursday, August 18, 2022

This week's Awesome Swift Weekly Read this email on the Web The Awesome Swift Weekly Issue » 323 Release Date Aug 18, 2022 Your weekly report of the most popular Swift news, articles and projects