Meta Software Engineer Coding & Algorithms Interview Questions
Practice 218 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."
Implement fast power and k-palindrome
This question evaluates numerical algorithm design and string algorithm skills, focusing on efficient exponentiation with negative exponents and deter...
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 palindrome-check and vertical-order traversal
You are asked to solve two separate coding questions. You do not need to run code; be prepared to explain your approach and walk through examples. Que...
Find Any Local Minimum with Iterative Binary Search
Find Any Local Minimum with Iterative Binary Search Given a nonempty integer array numbers, return the index of any local minimum. An index i is a loc...
Return Binary Tree Nodes in Vertical Order
Return Binary Tree Nodes in Vertical Order A binary tree has nodes numbered from 0 through n - 1, with node 0 as the root. Arrays left and right conta...
Merge Three Sorted Arrays Without Duplicates
Merge Three Sorted Arrays Without Duplicates You are given three integer arrays sorted in nondecreasing order. Merge them into one sorted array that c...
Return right and left side views of a tree
This question evaluates understanding of binary tree data structures and the competency to identify side views by reasoning about which node is visibl...
Find balanced subarray and increasing tree path
You are given two coding problems. Problem 1: Longest balanced subarray (0/1) Given an integer array nums of length n where each element is either 0 o...
Compute Range Sum Quickly
This question evaluates a candidate's understanding of range-sum queries, array preprocessing techniques and algorithmic complexity for answering mult...
Traverse binary tree by levels with constraints
Given a binary tree and a predicate P(node), perform a level-by-level traversal that collects, for each level, only the nodes whose values satisfy P. ...
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...
Solve four algorithmic problems
Solve the following coding tasks. For each, describe your approach, complexity, and handle edge cases. 1) Make parentheses string valid with minimal d...
Solve peak element and unique word abbreviation
You are given two independent coding problems to solve. 1) Peak element in an array (binary search) - Input: an integer array nums of length n >= 1. -...
Solve Subarray Sum and Local Minimum
Two coding problems were reported in the same phone-screen round: 1. Count target-sum subarrays. Given an integer array nums and an integer k, return ...
Find mode or minimum with time-space tradeoffs
For an unsorted array of integers, implement two functions: ( 1) return the minimum value; ( 2) return the value that appears most frequently (the mod...
Clone list with random pointers
Question You are given the head of a singly linked list where each node has two pointers: next and random. The random pointer may be null or point to ...
Implement a Timestamped Banking System
This question evaluates the ability to design and implement an in-memory, time-ordered stateful system handling event scheduling, transactional update...
Solve sliding window and tree BFS
Solve sliding window and tree BFS Solve a typical medium-level sliding-window problem (e.g., longest substring without repeating characters). LeetCode...
Compute interval mode, BST range sum, exclusive time
You are given several independent coding tasks. A) Most frequent integer covered by intervals You are given an integer range [-M, M] and a list of inc...
Maximize Unique Characters from Words
You are given a list of lowercase English words. Select a subset of the words such that no character appears more than once across all selected words....