Meta Software Engineer Coding & Algorithms Interview Questions
Practice 207 real Coding & Algorithms interview questions for Software Engineer roles at Meta.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Solve Two Backtracking Array Problems
You will solve two independent coding problems. For each problem, first discuss edge cases, then implement a correct solution, and finally explain how...
Find Shortest Unique Prefixes
Given a list of distinct non-empty words, return the shortest unique prefix for each word in the same order as the input. A prefix of a word is consid...
Implement an Expiring Record Store
Implement a level-based in-memory record store. The store contains records identified by a string key. Each record contains fields, where each field i...
Solve Four Online Assessment Problems
Complete the following four independent coding tasks. For each task, write a function that returns the requested result. 1. Find the best value index ...
Compute Exclusive Execution Times
You are given n functions labeled from 0 to n - 1 and a chronological list of execution logs from a single-threaded CPU. Each log has the format: `tex...
Solve Tree Diameter and Palindromic Counts
You will be given two independent coding problems. For each problem, explain your approach clearly and analyze both time and space complexity. Problem...
Solve a Key-Door Corridor Maze
AI-assisted coding round. You may use an AI coding assistant, but you are responsible for debugging the implementation and validating the test cases. ...
Infer an Unknown Alphabet Order
You are given a list of words that is already sorted according to an unknown alphabet. Derive one valid ordering of the characters in that alphabet. R...
Solve Array, Matrix, and Recommendation Problems
During an onsite coding interview, solve the following independent tasks. Problem 1: In-place unique prefix You are given a nondecreasing integer arra...
Implement array parity and tree level views
Implement the following coding tasks. 1. Check whether all values occur an even number of times - Input: an integer array nums. - Output: return...
Select words to maximize unique characters
Problem You are given an array of strings words. You may choose any subset of these strings and concatenate the chosen strings in any order. Your goal...
Solve Parser, Trading, Tree, And Deck Tasks
You will solve several independent programming tasks. For each task, implement clean, tested code and state the time and space complexity. 1. Validate...
Implement a versioned in-memory DB with CAS and history
In-Memory DB V2: TTL + Compare-And-Set/Delete + Historical Reads Implement an in-memory database keyed by (key, field) supporting TTL, conditional upd...
Solve maze reachability and two follow-ups
You are given three independent coding tasks. 1) Maze reachability with “rolling ball” movement Given an m x n grid maze where 0 means empty and 1 mea...
Remove minimum invalid mixed brackets
Given a string s containing letters and bracket characters from the set (), [], {}, remove the minimum number of bracket characters so that the result...
Build a FastAPI summarization service
Implement a minimal but production-ready FastAPI service for text summarization. Requirements: - Expose an endpoint POST /summarize. - The request bod...
Find kth largest element in array
Question Given an unsorted array of integers nums and an integer k, return the k-th largest element in the array. The 1st largest element is the maxim...
Implement an in-memory key-field-value DB with TTL
In-Memory DB with TTL + Scan + Backup/Restore Implement an in-memory database storing records by (key, field) -> value with optional TTL. Data model /...
Compute sparse dot product and count islands
You are asked to solve two coding problems. Problem 1: Sparse vector dot product Given two vectors A and B of the same length n (potentially large, e....
Implement BFS-based maze solver
Maze Printing and BFS Solver You are given a 2D grid representing a maze. Each cell of the grid is one of: - '#' – wall (cannot be passed) - '.' – emp...