Price per calorie of McDonald's menu items

InterviewQs

Price per calorie of McDonald's menu items

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

Hi, 

I hope you enjoy today's question. Don't forget to rate it at the bottom, your feedback is very appreciated :) 

Given the following datasets, containing both price and calorie information for McDonald's food items:

Write code to merge the two datasets, calculate the price per calorie of food, and stack rank the foods from the 'best value' (most calories per dollar*) to 'worst value' (least calories per dollar*).

*There are of course nuances in nutritional benefits, protein, etc, but we're simplifying here for the purposes of these definitions and assuming someone wants to optimize purely for cost of calories.



 

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

Is drawing a Red independent from an Ace?

Wednesday, July 28, 2021

Statistics, Probability Theory, InterviewQs Is drawing a Red independent from an Ace? Statistics Probability Theory Forward this email to a friend or colleague and challenge them to solve it. Hi, I

Function to merge and sort arrays

Monday, July 26, 2021

Python, Data Structures, Arrays, InterviewQs Function to merge and sort arrays Python Data Structures Arrays Forward this email to a friend or colleague and challenge them to solve it. Suppose you'

A hotel chain's loyal customers

Friday, July 23, 2021

SQL, Database Querying, Subquery, Union, InterviewQs A hotel chain's loyal customers SQL Database Querying Subquery Union Forward this email to a friend or colleague and challenge them to solve it.

Ranking, splitting into quantiles with Python

Wednesday, July 21, 2021

Data Analysis, Python, Pandas, Statistics, Data Manipulation, Quantiles, InterviewQs Ranking, splitting into quantiles with Python Data Analysis Python Pandas Statistics Data Manipulation Quantiles

TV and hypertension case study - Hours spent watching TV

Monday, July 19, 2021

Python, Statistics, T-test, External Dataset, InterviewQs TV and hypertension case study - Hours spent watching TV Python Statistics T-test External Dataset Forward this email to a friend or colleague

You Might Also Like

The CPU That Will Never Die 💾

Saturday, May 11, 2024

A tribute to the Z80, an iconic processor. Here's a version for your browser. Hunting for the end of the long tail • May 11, 2024 Hey all, Ernie here with a guest piece by a longtime friend of the

🧑🏻‍💻 Generative AI is Supercharging Scams — It's Time to Bring Back the Beige PC

Saturday, May 11, 2024

Also: The Tech I Used to Run 100 Miles This Month, and More! How-To Geek Logo May 11, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your

Daily Coding Problem: Problem #1438 [Medium]

Saturday, May 11, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. You are given a histogram consisting of rectangles of different heights. These

Charted | How People Get Around in America, Europe, and Asia 🚶‍♂️

Saturday, May 11, 2024

Examining how people get around on a daily basis using cars, public transit, and walking or biking, and the regional differences in usage. View Online | Subscribe Presented by Voronoi: The App Where

⚙️ How AI is Revolutionizing Sales Coaching

Saturday, May 11, 2024

Selling with the help of AI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Weekend Reading — Stack over you

Saturday, May 11, 2024

This week we remove gatekeepers from our CI, break a Guinness world record, redesign review ratings, understand the meaning behind “job requirements”, and level up. 😎 Labnotes (by Assaf Arkin) Weekend

Why Apple’s ‘Crush’ ad is so misguided

Saturday, May 11, 2024

Plus: How AI deepfakes took over the Met Gala View this email online in your browser By Cody Corrall Saturday, May 11, 2024 Image Credits: Apple Welcome to Week in Review: TechCrunch's newsletter

🐍 New Python tutorials on Real Python

Saturday, May 11, 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 News: What's New From April 2024 In

CensysGPT: AI-Powered Threat Hunting Tool for Cybersecurity Pros

Saturday, May 11, 2024

THN Daily Updates Newsletter cover Enterprise Transformation to AI and the Metaverse ($59.99 Value) FREE for a Limited Time Strategies for the Technology Revolution Download Now Sponsored LATEST NEWS

📧 Building Resilient Cloud Applications With .NET

Saturday, May 11, 2024

​ Building Resilient Cloud Applications With .NET Read on: m​y website / Read time: 7 minutes BROUGHT TO YOU BY ​ Build API Applications Visually ​ Build API applications visually using Postman Flows.