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

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
Meta logo
Meta
Medium
Software Engineer

Implement encoding validation and grid shortest path

Part A — Byte-encoding validation: You are given an array of integers in [0, 255] representing bytes. Determine whether the sequence encodes valid cha...

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

Validate parentheses and find k-th largest

This pair of problems evaluates mastery of fundamental data structures and algorithmic techniques: Problem A tests understanding of stack-based parsin...

Coding & Algorithms
6
0
65 people solved
Jan 6, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Answer four array/time/grid query questions

This set of four problems evaluates array manipulation and comparison, time parsing and minute-difference calculation, linear path enumeration with ex...

Coding & Algorithms
14
0
181 people solved
Jan 6, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Find shortest path in an OOP maze

This question evaluates graph traversal and shortest-path reasoning within an object-oriented codebase, focusing on state representation, neighbor exp...

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

Add two binary strings

This question evaluates proficiency with binary arithmetic and string manipulation, focusing on carry propagation and handling of very long inputs wit...

Coding & Algorithms
3
0
33 people solved
Jan 5, 2026
Meta logo
Meta
Medium
Software Engineer

Find missing ranges in interval

Given a sorted unique integer array nums and two integers lower and upper defining an inclusive interval [lower, upper], return all missing ranges not...

Coding & Algorithms
2
0
31 people solved
Aug 14, 2025
Meta logo
Meta
Medium
Software Engineer

Implement tree column grouping and minimal parentheses fixes

Part A — Binary tree column grouping: Given the root of a binary tree, group node values by their vertical columns from leftmost to rightmost using x-...

Coding & Algorithms
3
0
32 people solved
Aug 13, 2025
Meta logo
Meta
Medium
Software Engineer

Solve array merge and tree flattening problems

Solve array merge and tree flattening problems 1) Given two sorted arrays, merge them into a single sorted array. Provide both an in-place approach (w...

Coding & Algorithms
1
0
33 people solved
Aug 9, 2025
Meta logo
Meta
Medium
Software Engineer

Solve linked-list and top-K algorithm tasks

Question Given a singly linked list, return the k-th node counted from the end. Given an integer array, return the top k most frequent numbers. Given ...

Coding & Algorithms
6
0
52 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Solve linked list, top-K, and string reduction

Solve linked list, top-K, and string reduction Solve the following algorithmic tasks: 1) Given a singly linked list, return the k-th node from the end...

Coding & Algorithms
5
0
38 people solved
Jul 31, 2025
Meta logo
Meta
Medium
Software Engineer

Implement right side view and local minimum search

Question LeetCode 199. Binary Tree Right Side View — Given the root of a binary tree, return the values of the nodes you can see ordered from top to b...

Coding & Algorithms
29
0
79 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Compute product of array except self

Given an integer array nums, return an array out where out[i] equals the product of all elements in nums except nums[i]. Do it in O(n) time using cons...

Coding & Algorithms
2
0
24 people solved
Jul 29, 2025
Meta logo
Meta
Easy
Software Engineer

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

Coding & Algorithms
2
0
34 people solved
Dec 15, 2025
Meta logo
Meta
Medium
Software Engineer

Sum numbers formed by root-to-leaf paths

You are given the root of a binary tree where each node contains a single digit from 0 to 9. Each root-to-leaf path represents a number obtained by co...

Coding & Algorithms
4
0
39 people solved
Dec 8, 2025
Meta logo
Meta
Medium
Software Engineer

Implement string and basic ML algorithms

You are given three implementation tasks that mix algorithms and basic machine learning models. --- Task 1: Longest substring with all distinct charac...

Coding & Algorithms
5
0
65 people solved
Dec 8, 2025
Meta logo
Meta
Easy
Software Engineer

Design a time-versioned key-value store and find common free time

You are given two coding tasks. Task 1: Time-versioned key-value store Design an in-memory data structure that supports: - set(key, value, timestamp):...

Coding & Algorithms
4
0
32 people solved
Nov 12, 2025
Meta logo
Meta
Medium
Software Engineer Locked

Implement several string, tree, and BFS problems

This multi-part problem evaluates proficiency with core data structures and algorithms: binary tree traversal with column-aligned output, string parsi...

Coding & Algorithms
6
0
50 people solved
Oct 30, 2025

Explore more Meta Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Software Engineer categories
Browse all