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."
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...
Implement list cloning and k-frequency finder
You are given two separate coding tasks. --- Problem 1: Deep copy a linked list with extra pointers You are given the head of a singly linked list. Ea...
Solve grid shortest path and robot cleaning
Question LeetCode 1091. Shortest Path in Binary Matrix; LeetCode 489. Robot Room Cleaner https://leetcode.com/problems/shortest-path-in-binary-matrix/...
Find shortest subarray with range ≥ k
Problem You are given an integer array nums of length n and an integer k. Define the range of a subarray as: \[ \max(\text{subarray}) - \min(\text{sub...
Solve PTO window and sparse unique counting
Solve PTO window and sparse unique counting Design algorithms for two problems: A) Longest vacation with limited PTO: Given an array A of characters w...
Solve tree, array, and maze tasks
You are given a set of algorithmic problems from a software engineering onsite. 1. Tree path length: Given the root of a binary tree, return the numbe...
Construct a BST and read spiral order
The coding round reportedly included two algorithmic tasks: 1. Rebuild a binary search tree from a preorder sequence - You are given an array of di...
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...
Implement string sum and weighted city picker
Implement string sum and weighted city picker Part A — Add two numbers represented as strings: Given two non‑negative integers provided as decimal str...
Solve four data structure and algorithms tasks
1) Print the numbers at each level of a binary tree. Given the root, output the values level-by-level (each level on a new line or as a list of lists)...
Compute longest rising path in a grid
Given an m×n grid of integers, find the length of the longest path where each step moves up, down, left, or right to a strictly larger value. Return t...
Implement merge-in-place and group cyclic-equivalent strings
You are given two ascending arrays to merge in place and a separate grouping task: Part A — In-place merge without known sizes: - Array A contains sor...
Find power-of-two subarrays within sum range
Find power-of-two subarrays within sum range Given an integer array nums and an integer k, find all subarrays whose length is a power of two and whose...
Merge overlapping intervals
You are given a list of closed intervals on the number line, where each interval is represented as a pair of integers [start, end] with start <= end. ...
Design LRU cache and pick k closest points
Design LRU cache and pick k closest points 1) Design a fixed-capacity in-memory cache that evicts the least recently used key when full. Support get(k...
Find Kth Largest and Tree Ancestors
In a technical phone interview, the candidate was asked two coding problems in the same round: 1. K-th largest element in an array Given an unsor...
Validate parentheses and find k-th largest
Problem A — Validate parentheses Given a string s containing only the characters '(', ')', '[', ']', '{', '}', determine whether the input string is v...
Extend a Maze Solver
You are given an existing codebase for a maze game and solver. The maze is represented as a 2D grid containing: - S: start cell - T: target cell - .: ...
Solve common array/string/linked-list tasks
You may be asked one or more of the following independent coding tasks. For each task, implement an efficient algorithm and clearly state time/space c...
Evaluate arithmetic expression without parentheses
Evaluate arithmetic expression without parentheses Write evaluate(s: string) to compute the value of an arithmetic expression containing non-negative ...