Meta Interview Questions
Practice the exact questions companies are asking right now.
Compute ads revenue by geography in SQL
You have ad delivery logs for a shop-ads system. Tables ad_impressions - impression_id STRING (PK) - ts TIMESTAMP (UTC) - user_id STRING - shop_id STR...
How to evaluate similar-listing notifications feature
Case study (Marketplace product analytics) Context: Circle is a US marketplace app for buying and selling second‑hand products. On a product listing p...
Compute probability an account is fake
A platform uses an automated classifier to flag potentially fake accounts. Assume: - Base rate: 2% of accounts are fake. - The classifier flags a fake...
Evaluate new shop-ads ranking algorithm
You work on a marketplace with shop ads. A new ranking/recommendation algorithm is proposed to promote shop ads more aggressively, but stakeholders ar...
Answer four array/time/grid query questions
You are given four independent coding questions. Q1) Best value-for-money item You are given two arrays of equal length prices and ratings (each ratin...
Handle conflict and urgent shifting priorities
Answer the following behavioral questions with concrete examples from your experience: 1. Describe a conflict you had with a partner or teammate. What...
Design an ads ranking system with calibration
ML System Design: Ads Ranking (e-commerce) Design an online ads ranking (ad “re-ranking”) system for an e-commerce app. The system receives a request ...
Find shortest path in a maze grid
Maze shortest path You are given a 2D grid maze of size m x n where: - 0 represents an open cell - 1 represents a wall (cannot pass) You are also give...
Describe failures, self-reflection, and conflict resolution
Answer the following behavioral prompts with recent examples: 1. Self-reflection / improvement - “In a recent project, where could you have done be...
Answer core Meta behavioral questions
You are in a behavioral interview for a software engineering role. Answer the following questions with concrete examples from your experience (interns...
Solve string transform and min-move sorting
Problem 1: "Goat Latin"-style string transformation You are given a sentence s consisting of words separated by single spaces. Transform it into a new...
Find two numbers summing to target without hashmap
Problem Given an integer array nums (length n) and an integer target, return the indices (i, j) such that: - i != j - nums[i] + nums[j] == target You ...
Deep copy a linked list with random pointers
Problem You are given the head of a linked list where each node has: - val: integer value - next: pointer to the next node (or null) - random: pointer...
Solve SQL and Python coding tasks
You are given a small library system with the following relational schema and several Python data-processing tasks. Answer the SQL questions and imple...
Design a weapon-ad harmful content detection system
Scenario You are building a system for an ads platform that must detect advertisements that contain weapons (e.g., guns, knives) and prevent policy-vi...
Design metrics and experiment for stolen-post detection
You work on Stolen Post Detection for a social platform (detecting content that is copied/reposted without permission). A new detection algorithm is p...
Compute reply-based user metrics in 7 days
You are analyzing discussions on a social platform. Tables all_post - post_id (BIGINT, PK) - post_author_id (BIGINT, FK → user.user_id) - post_creatio...
Write SQL for video-call recipients and FR activity
Given the schema and samples below, write ANSI‑SQL to answer both questions. Assume dates are stored in UTC. Today is 2025-09-01, so “yesterday” is 20...
Implement LRU cache and copy random list
Coding questions (two parts) Part A — Deep copy a linked list with random pointers You are given the head of a singly linked list where each node has:...
Design coding platform with global leaderboard
Scenario Design a LeetCode-like online coding practice platform that also has a global leaderboard (e.g., Top K users by score) and can show a user’s ...