Meta Software Engineer Coding & Algorithms Interview Questions

Practice 218 real Coding & Algorithms interview questions for Software Engineer roles at Meta.

218 Questions 1 Company07.06.2026
Showing 20 results
Role
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Solve Parser, Trading, Tree, And Deck Tasks

You will solve several independent programming tasks. For each task, implement clean, tested code and state the time and space complexity. 1. Validate...

Coding & Algorithms
5
0
37 people solved
Apr 9, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Validate Sorted Order Under a Custom Alphabet

This question evaluates a candidate's ability to apply custom ordering rules and string comparison logic, a common variant of array and string validat...

Coding & Algorithms
2
0
18 people solved
Jun 20, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Find Shortest Unique Prefixes

This question evaluates string-processing skills and understanding of data structures for prefix management (e.g., tries), along with algorithmic effi...

Coding & Algorithms
2
0
14 people solved
Jun 18, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Palindrome After Deleting at Most One Character

This question evaluates a candidate's ability to reason about two-pointer string traversal and palindrome verification under a single edit constraint....

Coding & Algorithms
1
0
15 people solved
Jun 20, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Solve Three Coding Interview Problems

The interview included three coding tasks: 1. Common ancestor in an N-ary tree You are given the root of an N-ary tree and two target nodes. Dete...

Coding & Algorithms
4
0
53 people solved
Feb 2, 2026
Meta logo
Meta
Medium
Software Engineer

Select words to maximize unique characters

Problem You are given an array of strings words. You may choose any subset of these strings and concatenate the chosen strings in any order. Your goal...

Coding & Algorithms
38
0
516 people solved
Dec 15, 2025
Meta logo
Meta
Medium
Software Engineer

Implement BFS-based maze solver

Maze Printing and BFS Solver You are given a 2D grid representing a maze. Each cell of the grid is one of: - '#' – wall (cannot be passed) - '.' – emp...

Coding & Algorithms
33
0
327 people solved
Dec 7, 2025
Meta logo
Meta
Easy
Software Engineer

Implement four coding challenges

You are asked to solve the following four independent coding problems. --- 1) Block Placement Simulator (Tetris-like) You have an empty n x m grid (ro...

Coding & Algorithms
9
0
84 people solved
Feb 8, 2026
Meta logo
Meta
Medium
Software Engineer

Find top-K frequent elements in a stream

You receive a large stream of items (e.g., integers or strings) that may not fit in memory. Design an algorithm that can return the top K most frequen...

Coding & Algorithms
8
0
80 people solved
Feb 25, 2026
Meta logo
Meta
Medium
Software Engineer

Count Distinct Values in a Sorted Array When K Is Small

Count Distinct Values in a Sorted Array When K Is Small Given an integer array sorted in nondecreasing order, return the number of distinct values. Le...

Coding & Algorithms
1
0
12 people solved
Mar 2, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Build a FastAPI summarization service

Implement a minimal but production-ready FastAPI service for text summarization. Requirements: - Expose an endpoint POST /summarize. - The request bod...

Coding & Algorithms
5
0
52 people solved
Jan 19, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Compute Exclusive Execution Times

This question evaluates understanding of nested function execution and precise exclusive-time accounting derived from chronological logs, emphasizing ...

Coding & Algorithms
0
0
15 people solved
May 25, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Solve Maze and Suffix Problems

Solve the following two coding problems. Problem A: Find the shortest path through a maze with keys and doors You are given a 2D grid representing a m...

Coding & Algorithms
1
0
18 people solved
Apr 25, 2026
Meta logo
Meta
Medium
Software Engineer

Resolve a cd Path Against the Current Directory

Resolve a cd Path Against the Current Directory Implement path resolution for a simplified Unix-like cd command. cwd is a normalized absolute path. ar...

Coding & Algorithms
0
0
12 people solved
Mar 2, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI Locked

Solve Tree Columns And Maze Variants

This question evaluates tree traversal and column-based grouping skills along with grid-based graph search, state modeling, and handling dynamic maze ...

Coding & Algorithms
2
0
22 people solved
May 21, 2026
Meta logo
Meta
Medium
Software Engineer AI

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

Coding & Algorithms
4
0
41 people solved
Jan 6, 2026
Meta logo
Meta
Medium
Software Engineer

Find Any Local Minimum with Iterative Binary Search

Find Any Local Minimum with Iterative Binary Search Given a nonempty integer array numbers, return the index of any local minimum. An index i is a loc...

Coding & Algorithms
0
0
13 people solved
Mar 2, 2026
Meta logo
Meta
Medium
Software Engineer

Implement an in-memory key-field-value DB with TTL

In-Memory DB with TTL + Scan + Backup/Restore Implement an in-memory database storing records by (key, field) -> value with optional TTL. Data model /...

Coding & Algorithms
10
0
130 people solved
Feb 11, 2026
Meta logo
Meta
Medium
Software Engineer

Return Binary Tree Nodes in Vertical Order

Return Binary Tree Nodes in Vertical Order A binary tree has nodes numbered from 0 through n - 1, with node 0 as the root. Arrays left and right conta...

Coding & Algorithms
0
0
12 people solved
Mar 2, 2026
Meta logo
Meta
Medium
Software Engineer

Merge Three Sorted Arrays Without Duplicates

Merge Three Sorted Arrays Without Duplicates You are given three integer arrays sorted in nondecreasing order. Merge them into one sorted array that c...

Coding & Algorithms
0
0
11 people solved
Mar 2, 2026

Explore more Meta Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Software Engineer categories
Browse all