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."
Implement cd and merge intervals
Problem 1: Implement a simplified cd command You are given: - cwd: the current working directory as an absolute Unix path (starts with /). - path: a t...
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. -...
Answer four string/array/battery coding questions
You are given four independent coding questions. Problem A — Uppercase vs lowercase count difference Given a string s (ASCII), count how many characte...
Compute Sliding Window Averages
Given a list of numbers nums and a positive integer window_size, compute the average of every contiguous subarray of length window_size. Return a list...
Find k most frequent elements, discuss O(n)
Find k most frequent elements, discuss O(n) Given an integer array nums of length n and an integer k (where 1 ≤ k ≤ the number of distinct values in n...
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...
Maximize score in 15-sum card game
Problem A deck has 36 cards: 4 suits × ranks 1 through 9 (so there are exactly four 1s, four 2s, …, four 9s). Suits do not affect scoring; only ranks ...
Connect next pointers for each tree level
You are given the root of a binary tree where each node has fields left, right, and next (initially null). For every node, set its next pointer to the...
Count palindrome substrings in a string
Given a lowercase ASCII string s, count the number of substrings that are palindromes and return the count. Implement an O(n^ 2) solution using expand...
Extend BFS maze solver with keys and arrows
Problem You are given a rectangular maze represented as a 2D grid of characters. Implement and iteratively fix/extend a solver that finds a shortest p...
Validate a simplified numeric string
Implement isValidNumber (s) that returns true if and only if the ASCII string s represents a valid number under these simplified rules: - Optional lea...
Find shortest substring with N unique characters
You are given a string s and an integer n. Find the shortest contiguous substring of s that contains exactly n distinct characters. If there is no suc...
Extend cloud file system with copy and compression
In-Memory Cloud File System V2: Copy, Capacity Updates, Compress/Decompress Design an in-memory file system with per-user quotas and additional operat...
Design an in-memory cloud file system
In-Memory Cloud File System (OOD) Design an in-memory cloud file system that supports files owned by users with storage quotas. Data model / rules - E...
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....
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...
Add two binary strings
You are given two binary strings a and b (each consisting only of characters '0' and '1'). Return their sum as a binary string. Input - a: string, len...
Find K-th Largest and Longest Vacation
Solve the following two coding problems. 1. Find the k-th largest element Given an integer array nums and an integer k, return the element that wou...
Maximize Letters from Disjoint Words
You are given an array words of lowercase English strings. Choose a subset of words such that: - each chosen word contains no repeated letter within i...
Reverse sublist between equal-value nodes
Given the head of a singly linked list and a target value v that appears at least twice, reverse the sublist starting at the first node with value v a...