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."
Maintain top N payers
Maintain top N payers Implement topNPayers(n) that returns the n accounts with the highest cumulative outgoing payment amounts as strings formatted "{...
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...
Compute binary tree diameter
Compute binary tree diameter Given the root of a binary tree, compute the tree's diameter defined as the maximum number of edges on any path between t...
Compute weighted sum of nested lists
Compute weighted sum of nested lists Given a nested collection that can contain integers or other nested collections, compute the depth-weighted sum w...
Solve UTF-8 Validation & Shortest Path
Question LeetCode 393. UTF-8 Validation LeetCode 1091. Shortest Path in Binary Matrix https://leetcode.com/problems/utf-8-validation/description/ http...
Solve weighted pick and product except self
Question LeetCode 528. Random Pick with Weight LeetCode 238. Product of Array Except Self https://leetcode.com/problems/random-pick-with-weight/descri...
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 LeetCode stack and tree problems
Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 863. All Nodes Distance K in Binary Tree https://leetcode.com/problems/minim...
Solve three LeetCode coding problems
Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 827. Making A Large Island LeetCode 199. Binary Tree Right Side View https:/...
Find integer in most intervals
Question Given N integer intervals [ai, bi] (positive integers), find an integer that belongs to the maximum number of intervals (return any such inte...
Solve island connectivity and string multiplication
Question Given N distinct islands (e.g., a, b, c…) and a list of existing undirected paths between them, compute the minimum number of additional path...
Solve island and frequency problems
Question LeetCode 200. Number of Islands – given a 2D grid, count the number of connected islands of '1's using DFS/BFS/Union-Find. LeetCode 695. Max ...
Solve diverse LeetCode algorithm problems
Question LeetCode 695. Max Area of Island LeetCode 380. Insert Delete GetRandom O( 1) LeetCode 19. Remove Nth Node From End of List LeetCode 1004. Max...
Evaluate expression without stack, constant space
Evaluate expression without stack, constant space Given a string s representing a valid arithmetic expression of non-negative integers, the operators ...
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 binary tree, grid, and heap tasks
Solve binary tree, grid, and heap tasks Answer the following independent coding tasks: 1) Range sum in a BST: Given the root of a binary search tree a...
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 ...
Copy linked list with random pointers efficiently
Copy linked list with random pointers efficiently Given the head of a singly linked list where each node has next and random pointers, create a deep c...
Merge two sorted arrays in-place
Merge two sorted arrays in-place You are given two sorted integer arrays nums1 and nums2, both sorted in non-decreasing order. - nums1 has length m + ...
Maximize number with one digit swap
Maximize number with one digit swap Given a non-negative integer n (as an int or string), perform at most one swap of two digits to produce the maximu...