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 power, reduce string, parse tree, debug maze
1) Implement fast exponentiation (pow) Implement a function pow(x, n) that returns \(x^n\). - Inputs: a floating-point base x and an integer exponent ...
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...
Optimize flight costs and find grid path
1) Given two integer arrays D and R of equal length n, where D[i] is the cost to depart on day i and R[j] is the cost to return on day j, choose indic...
Navigate unknown maze to find target
You are given an exploration interface for an unknown 2D maze that exposes only local actions (e.g., move(up/down/left/right) -> bool indicating succe...
Count subarrays summing to target
Given an integer array nums and an integer target T, return the number of contiguous subarrays whose sum equals T. Provide an algorithm that runs in l...
Solve grid path and robot navigation
Part A — Shortest path in a grid with obstacles: Given an m×n grid of 0/1 cells (0 = open, 1 = obstacle), start at (0, 0) and end at (m−1,n− 1). You m...
Reverse between equal-value nodes in list
Given the head of a singly linked list and a target value v, locate the first two nodes whose values equal v (call them A and B, with A before B) and ...
Find top-K frequent values with tiebreaks
Question Given an integer array nums and an integer k, return the k values with the highest frequency. The array can contain up to 10^6 elements. When...
Compute left and right views once
Given the root of a binary search tree, output two lists: the nodes visible from the left side and the nodes visible from the right side, from top to ...
Implement a Timestamped Banking System
Implement an in-memory banking system that processes API calls in nondecreasing timestamp order. Support the following operations: - create_account(ti...
Determine feasibility and clean parentheses string
You are given two independent coding tasks. 1) Check if all courses/tasks can be completed You have n courses labeled 0..n-1 and a list of prerequisit...
Solve three array/string/graph coding tasks
You are given three separate coding tasks. Implement each as a function. 1) Merge three sorted arrays Input: Three integer arrays A, B, C, each sorted...
Extend a BFS maze solver stepwise
Maze Solver (4 incremental tasks) You are given an existing codebase for a maze solver that finds a path in a 2D grid. The maze is represented as a re...
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...
Solve tree traversal and two-pointer problems
Solve tree traversal and two-pointer problems Implement the following independent problems: 1) Vertical columns: Given a binary tree, return lists of ...
Merge overlapping time intervals
Problem You are given a list of closed intervals intervals, where each interval is [start, end] and start <= end. Merge all intervals that overlap and...
Convert 32-bit integer to hexadecimal
Problem Given a 32-bit signed integer num, return its hexadecimal representation as a string. Requirements - Use lowercase letters a-f. - Do not inclu...
Compute BST range sum
Given the root of a binary search tree and two integers low and high (inclusive), compute the sum of values of all nodes with low <= val <= high. Prov...
Implement fast power and k-palindrome
The phone screen included two coding tasks: 1. Fast exponentiation Given a floating-point number x and a signed integer n, compute x raised to th...
Sort a string by custom order
Sort a string by custom order Given a priority string P of distinct characters and a text string S, reorder S so that all characters appearing in P co...