Meta Coding & Algorithms Interview Questions

Preparing for Meta Coding & Algorithms interview questions requires focusing on algorithmic problem solving, writing production-minded code, and communicating tradeoffs under time

302 Questions 1 Company07.06.2026
Showing 20 results
Role
Meta logo
Meta
Medium
Software Engineer AI Locked

Solve tree, array, and maze tasks

This set of problems evaluates proficiency in algorithms and data structures, covering binary tree diameter computation, array optimization for maximu...

Coding & Algorithms
2
0
26 people solved
Oct 17, 2025
Meta logo
Meta
Medium
Software Engineer Locked

Extend a BFS maze solver stepwise

This question evaluates proficiency in grid-based graph traversal and pathfinding, covering BFS mechanics, stateful reachability with keys and doors, ...

Coding & Algorithms
7
0
52 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ Locked

Solve maze tasks and compute shortest routes

This multi-part question evaluates proficiency in grid-based pathfinding and shortest-path reasoning, debugging and incremental code extension, handli...

Coding & Algorithms
6
0
81 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software Engineer

Compute sparse dot product and count islands

You are asked to solve two coding problems. Problem 1: Sparse vector dot product Given two vectors A and B of the same length n (potentially large, e....

Coding & Algorithms
3
0
54 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Machine Learning Engineer AI Locked

Maximize Unique Letters

This question evaluates proficiency in combinatorial optimization, bit manipulation, and state-compression techniques for selecting subsets under uniq...

Coding & Algorithms
2
0
35 people solved
Feb 8, 2026
Meta logo
Meta
Easy
Software Engineer Locked

Compute Sliding Window Averages

This question evaluates proficiency in array manipulation, sliding-window techniques, and algorithmic efficiency including time and space complexity. ...

Coding & Algorithms
1
0
20 people solved
Jan 29, 2026
Meta logo
Meta
Easy
Software Engineer Locked

Solve four OA coding problems

This set of four problems evaluates core algorithmic competencies including array manipulation and counting in sorted arrays, resource-constrained opt...

Coding & Algorithms
2
0
50 people solved
Jan 26, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Implement BST Iterator and Ticket Queue

This question evaluates understanding of binary search tree traversal and iterator design with amortized time and space analysis, as well as dynamic p...

Coding & Algorithms
2
0
40 people solved
Jan 24, 2026
Meta logo
Meta
Medium
Machine Learning EngineerSenior+ Locked

Deep copy a linked list with random pointers

This question evaluates understanding of linked-list structures, pointer/reference manipulation, deep versus shallow copying, and the ability to analy...

Coding & Algorithms
4
0
69 people solved
Jan 22, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ Locked

Solve string transform and min-move sorting

This two-part problem evaluates string manipulation and algorithmic problem-solving competencies, specifically rule-based text transformation and comp...

Coding & Algorithms
6
0
99 people solved
Jan 22, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Find shortest path in a maze grid

This question evaluates proficiency in graph traversal and shortest-path reasoning on grid-based data structures, testing skills in pathfinding, state...

Coding & Algorithms
10
0
137 people solved
Jan 21, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Compute unmatched parentheses length

This question evaluates string-processing skills and understanding of parentheses matching and cancellation, focusing on linear-time sequence analysis...

Coding & Algorithms
4
0
43 people solved
Jan 18, 2026
Meta logo
Meta
Medium
Software Engineer

Solve word count, node, segmentation, stock tasks

You have four tasks: 1) Count words with explicit rules: Given a text document, return the number of words. First define precisely what qualifies as a...

Coding & Algorithms
3
0
39 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Data Engineer

Compute capacities after site closures

You are given a nested dictionary redistribution where redistribution[closed_site][dest_site] equals the additional capacity required at dest_site if ...

Coding & Algorithms
6
0
72 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Data Engineer

Compute missing letters to form original string

Implement a function that, given two strings original and typed (typed is a misspelled/partial version of original), returns the number of additional ...

Coding & Algorithms
8
1
64 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

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...

Coding & Algorithms
6
0
69 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

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...

Coding & Algorithms
4
0
31 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Compute vertical order of a BST

Compute the vertical order traversal of a binary search tree. Define coordinates so the root is at column 0, row 0; the left child is (col−1, row+ 1) ...

Coding & Algorithms
2
0
40 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Remove minimum parentheses to balance string

Given a string s containing lowercase letters and the characters '(' and ')', remove the minimum number of parentheses so that the resulting string is...

Coding & Algorithms
1
0
36 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Compute top-N outgoing spenders

Add a feature to report the top N accounts by total outgoing payments across both immediate pays and scheduled payments. Implement: List<String> topNS...

Coding & Algorithms
3
0
24 people solved
Sep 6, 2025

Frequently Asked Questions

How difficult are Meta Coding & Algorithms interview questions?
Meta Coding & Algorithms questions are typically rated medium to hard and often grow tougher as you progress through rounds. Early screens usually aim to confirm correct problem solving and implementation ability, while onsite interviews expect robust algorithmic thinking, time and space optimality, and clear communication under pressure. Interviewers evaluate how you approach unfamiliar problems, move from brute force to optimized solutions, handle edge cases, and articulate complexity trade‑offs. Preparation should target speed, pattern recognition, and producing clean, testable code that can be reasoned about aloud during the interview.
Where in Meta's interview process do Coding & Algorithms questions appear, and how are they evaluated?
Coding and algorithms questions commonly appear in phone screens, technical online assessments, and the core onsite/virtual loop; they may be mixed with product or design conversations depending on role. Evaluations focus on problem decomposition, correctness, algorithmic efficiency, and code quality. Interviewers listen for clear problem statements, thoughtful trade‑offs, and how you validate solutions against edge cases and constraints. For more senior roles, emphasis shifts to selecting the right abstractions and reasoning about large inputs and performance. Communication, testing, and the ability to iterate from a simple approach to an optimized one are all part of the score.
How should I plan my interview preparation timeline for Meta Coding & Algorithms roles?
A disciplined timeline usually spans six to twelve weeks depending on experience and starting point. Begin with two to three weeks of fundamentals: solidify data structures, complexity analysis, and core algorithms. Follow with four to six weeks of focused practice on medium and hard problems, rotating topics and timing yourself, while documenting patterns and common mistakes. In the final two weeks, emphasize mock interviews, timed coding rounds, and refining communication and testing habits. Regularly review incorrect solutions to identify recurring gaps, and incorporate at least a few live mock interviews to habituate speaking through your thought process.
What key subtopics within Coding & Algorithms should I focus on for Meta interviews?
Concentrate on arrays and strings, trees and graphs (including BFS/DFS), hash maps, two‑pointer and sliding window techniques, recursion and backtracking, dynamic programming, and sorting/search algorithms. Also prepare on complexity analysis, space‑time tradeoffs, handling NULLs and edge cases, and writing robust test cases. For higher levels, emphasize understanding of algorithmic scalability, memory layout implications, and performance tuning. Equally important are clear coding style, readable variable names, and the ability to explain why a chosen data structure or algorithm best fits the constraints of the problem.
What standout tips, common pitfalls, and final advice for Coding & Algorithms interviews at Meta?
Start each problem by asking clarifying questions and describing a brute‑force approach before optimizing. Verbally outline your plan, write clean code with basic tests, and explain complexity at the end. Common pitfalls include diving into coding without validating edge cases, ignoring constraints, and failing to communicate assumptions. Avoid overfitting to memorized problems; instead, internalize patterns so you can adapt. Use mock interviews to sharpen pacing and feedback. Finally, remain calm if stuck: state hypotheses, try small examples, and iterate—interviewers value structured thinking and recoveries as much as perfect first attempts.

Explore more Meta Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

By role
Other categories at Meta
Coding & Algorithms questions at other companies
Browse all