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 linked-list and top-K algorithm tasks
Question Given a singly linked list, return the k-th node counted from the end. Given an integer array, return the top k most frequent numbers. Given ...
Solve LeetCode array & stream problems
Question LeetCode 346. Moving Average from Data Stream LeetCode 249. Group Shifted Strings LeetCode 163. Missing Ranges Remove duplicates from a chara...
Handle palindrome & decimal addition
Question LeetCode 266. Palindrome Permutation Given two non-negative decimal number strings, implement addition that supports a decimal point. https:/...
Remove adjacent duplicate groups repeatedly
Remove adjacent duplicate groups repeatedly Given a string s, repeatedly delete any maximal contiguous group of identical characters whose length is a...
Solve increasing sequence and path problems
Solve increasing sequence and path problems Answer the following related tasks about increasing sequences and paths: a) Contiguous subarray: Given an ...
Solve two string algorithm tasks
Solve two string algorithm tasks Answer both parts. A) Parentheses correction: Given a string s consisting only of '(' and ')', output the minimum num...
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 ...
Count subarrays equal to target
Given an integer array nums and an integer k, return the number of contiguous subarrays whose sum equals k. Provide an algorithm better than O(n^ 2), ...
Design an O(1) recency-evicting cache
Design and implement a fixed-capacity in-memory cache that supports get(key) and put(key, value) in average O( 1) time. When capacity is exceeded, evi...
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. ...
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...
Compute max profit from single stock trade
Given an array prices where prices[i] is the stock price on day i, compute the maximum profit achievable with at most one transaction (one buy and one...
Solve grid path and top‑k frequency
Part A — Grid Reachability with Obstacles: Given an m×n matrix of 0s and 1s where 0 indicates a passable cell and 1 indicates a blocked cell, starting...
Design a bank system with scheduled transfers
Bank System (OOD): Accounts, Transfers, Scheduling, Top Spending, Merge Design an in-memory banking system that supports: - account creation - deposit...
Design a time-versioned key-value store and find common free time
You are given two coding tasks. Task 1: Time-versioned key-value store Design an in-memory data structure that supports: - set(key, value, timestamp):...
Implement tree column grouping and minimal parentheses fixes
Part A — Binary tree column grouping: Given the root of a binary tree, group node values by their vertical columns from leftmost to rightmost using x-...
Solve tree traversal and interval merging tasks
Part A — Column-wise Binary Tree Grouping: You are given the root of a binary tree. Group nodes by vertical column index, where the root has column 0,...
Solve array merge and tree flattening problems
Solve array merge and tree flattening problems 1) Given two sorted arrays, merge them into a single sorted array. Provide both an in-place approach (w...
Find buildings with rightward view
Find buildings with rightward view You are given an array of building heights aligned along a street that faces the ocean to the right. Return the ind...
Check near-palindrome with one deletion
Check near-palindrome with one deletion Given a string s, determine whether it can become a palindrome after deleting at most one character. Return bo...