Probability of sitting in the aisle based on the plane ticket's letter

InterviewQs

Probability of sitting in the aisle based on the plane ticket's letter

Python Probability Data Structures Pandas Data Analysis Data Visualization

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

Hi, 

Suppose a plane denotes their seat assignments in the format: row number - seat letter. For example, ticket 12-B would denote seat B in the 12th row of the plane.

Given this information, along with the following details regarding the layout of the plane...

  • The first 10 rows are first class seats and contain 2 seats per row
  • The next 20 rows are business class and contain 4 seats per row
  • The final 80 rows are economy class and contain 8 seats per row

...calculate the estimated probability that a given seat letter (e.g. A, B, C, D, etc) is an aisle seat.

Note that given the above information around the layout of the plane, you'll need to make some logical assumptions around how the seats would be configured, as well as the ordering of the seat letters. There is no 'correct' answer here (it depends on your assumptions), but you should focus on creating a well-reasoned/logical analysis to return the probability of an aisle seat by seat letter based on the assumptions you lay out.

Our solution will be written in Python for premium users.


 

You’ve accumulated 272 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

Words from keyboard rows

Friday, March 25, 2022

Python, Arrays, Data Structures, Algorithms, InterviewQs Words from keyboard rows Python Arrays Data Structures Algorithms Forward this email to a friend or colleague and challenge them to solve it. Hi

Selecting eggs from the grocery store

Wednesday, March 23, 2022

Statistics, Probability Theory, Bayes' Theorem, Conditional Probability, InterviewQs Selecting eggs from the grocery store Statistics Probability Theory Bayes' Theorem Conditional Probability

Flagging increasing stock prices in SQL

Monday, March 21, 2022

SQL, Database Querying, Window Function, Subquery, InterviewQs Flagging increasing stock prices in SQL SQL Database Querying Window Function Subquery Forward this email to a friend or colleague and

Large numbers in a raffle

Friday, March 18, 2022

Statistics, Probability Theory, Binomial, InterviewQs Large numbers in a raffle Statistics Probability Theory Binomial Forward this email to a friend or colleague and challenge them to solve it. Hi,

Happiness score correlation

Wednesday, March 16, 2022

Python, Arrays, Data Structures, Statistics, InterviewQs Happiness score correlation Python Arrays Data Structures Statistics Forward this email to a friend or colleague and challenge them to solve it.

You Might Also Like

📈 Why Is My Ping So High While Gaming? — How to Keep Your Android From Overheating

Saturday, May 4, 2024

Also: Using ChatGPT to Craft a Resume, and More! How-To Geek Logo May 4, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by

JSK Daily for May 4, 2024

Saturday, May 4, 2024

JSK Daily for May 4, 2024 View this email in your browser A community curated daily e-mail of JavaScript news The Power of React's Virtual DOM: A Comprehensive Explanation Modern JavaScript

Daily Coding Problem: Problem #1431 [Medium]

Saturday, May 4, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by MongoDB. Given a list of elements, find the majority element, which appears more than

Ranked | The World's Top Media Franchises by All-Time Revenue 📊

Saturday, May 4, 2024

From Pokémon to Star Wars, some media franchises are globally recognizable. How do media franchises compare in terms of all-time revenue? View Online | Subscribe Presented by Voronoi: The App Where

Noonification: Read Code Like a Hacker With the SAST

Saturday, May 4, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech today, May 4, 2024? The HackerNoon Newsletter brings the HackerNoon

Weekend Reading — May the fourth

Saturday, May 4, 2024

This week we setup our new Minecraft server, play Spacewar, avoid burnout, wonder about Facebook AI spam, lose our passkeys, and claim stairs on the way back home. 😎 Labnotes (by Assaf Arkin) Weekend

Google lays off workers

Saturday, May 4, 2024

Plus: Tesla cans its Supercharger team and UnitedHealthcare reveals security lapses View this email online in your browser By Kyle Wiggers Saturday, May 4, 2024 Image Credits: Tomohiro Ohsumi / Getty

When It Rains, It Pours ☔

Saturday, May 4, 2024

Why the umbrella's design can't be beat. Here's a version for your browser. Hunting for the end of the long tail • May 04, 2024 Hey there, Ernie here with a refreshed piece about umbrellas

🐍 New Python tutorials on Real Python

Saturday, May 4, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python's unittest: Writing Unit Tests for

Microsoft Outlook Flaw Exploited by Russia's APT28 to Hack Czech, German Entities

Saturday, May 4, 2024

THN Daily Updates Newsletter cover Webinar -- Data Security is Different at the Petabyte Scale Discover the secrets to securing fast-moving, massive data sets with insights from industry titans