Meta Python Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

5 real Python interview questions asked at Meta. Upvoted by engineers who cleared the loop. Covers Technical, Scenario rounds.

5 questions
277 engineers asked
357 upvotes
Company: Meta
Technology: Python

All Python Questions Asked at Meta

Meta Hard Technical round JavaPythonDistributed Systems

Given Meta's social graph, find all friend-of-friend recommendations for a user that are not already friends. Discuss BFS at scale, how to prune the search space, and how to rank recommendations by mutual friend count efficiently.

↑ 54 upvotes · 54 engineers asked this · SDE2
Meta Medium Technical round PythonJava

Given a social graph, find all users within K hops of a given user. Implement BFS with a visited set. Then discuss how you would scale this to Meta's 3 billion user graph using partitioning.

↑ 58 upvotes · 37 engineers asked this · SDE1
Meta Medium Technical round PythonJavaJavaScript

Given an array of N integers, find the maximum product subarray. Explain why you need to track both the maximum and minimum product ending at each position, and handle zeros and negative numbers.

↑ 52 upvotes · 33 engineers asked this · SDE1
Meta Hard Scenario round 5–8 YearsLLMPythonML/AI

Your fine-tuned LLM performs well on your eval set but users report degraded responses 2 weeks after deployment. What is happening and what do you do?

↑ 104 upvotes · 82 engineers asked this · AI Engineer
Meta Medium Technical round 3–6 YearsPython

What is the difference between RANK(), DENSE_RANK(), and ROW_NUMBER()? Give a real use case for each.

↑ 89 upvotes · 71 engineers asked this · Data Engineer

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

More Meta Questions

Meta Distributed Systems Questions Meta Kafka Questions Meta JavaScript Questions

Python Questions at Other Companies

Amazon Python Questions Google Python Questions

Browse by company

Amazon Google Microsoft Flipkart Swiggy Meta Apple Netflix Uber Airbnb Stripe Razorpay PhonePe Paytm Zomato Salesforce Oracle Adobe LinkedIn Atlassian Accenture Deloitte Wipro Infosys TCS Capgemini PayU General Anthropic OpenAI TikTok JPMorgan Walmart Spotify DoorDash Goldman Sachs Revolut Canva Capital One Lyft SAP Siemens Shopify Grab Cognizant LTIMindtree Myntra Hotstar Twitter Snowflake

Frequently asked questions

Given Meta's social graph, find all friend-of-friend recommendations for a user that are not already friends.
Given Meta's social graph, find all friend-of-friend recommendations for a user that are not already friends. Discuss BFS at scale, how to prune the search space, and how to rank recommendations by mutual friend count efficiently.
Given a social graph, find all users within K hops of a given user. Implement BFS with a visited set. Then discuss how you would scale this to Meta's 3 billion user graph using partitioning.
Given a social graph, find all users within K hops of a given user. Implement BFS with a visited set. Then discuss how you would scale this to Meta's 3 billion user graph using partitioning.
Given an array of N integers, find the maximum product subarray. Explain why you need to track both the maximum and minimum product ending at each position, and handle zeros and negative numbers.
Given an array of N integers, find the maximum product subarray. Explain why you need to track both the maximum and minimum product ending at each position, and handle zeros and negative numbers.
Your fine-tuned LLM performs well on your eval set but users report degraded responses 2 weeks after deployment. What is happening and what do you do?
Your fine-tuned LLM performs well on your eval set but users report degraded responses 2 weeks after deployment. What is happening and what do you do?
What is the difference between RANK(), DENSE_RANK(), and ROW_NUMBER()? Give a real use case for each.
What is the difference between RANK(), DENSE_RANK(), and ROW_NUMBER()? Give a real use case for each.