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

Find kth largest element in array

Question Given an unsorted array of integers nums and an integer k, return the k-th largest element in the array. The 1st largest element is the maxim...

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

Merge overlapping intervals

You are given a list of closed intervals on the number line, where each interval is represented as a pair of integers [start, end] with start <= end. ...

Coding & Algorithms
4
0
48 people solved
Dec 8, 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
37 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Implement merge-in-place and group cyclic-equivalent strings

You are given two ascending arrays to merge in place and a separate grouping task: Part A — In-place merge without known sizes: - Array A contains sor...

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

Group a tree by vertical columns

Group a tree by vertical columns Given the root of a binary tree, produce a vertical listing of nodes: assign each node an x-coordinate (root at x=0; ...

Coding & Algorithms
2
0
32 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

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

Coding & Algorithms
2
0
38 people solved
Aug 1, 2025
Meta logo
Meta
Medium
Software Engineer

Design LRU cache and pick k closest points

Design LRU cache and pick k closest points 1) Design a fixed-capacity in-memory cache that evicts the least recently used key when full. Support get(k...

Coding & Algorithms
6
0
60 people solved
Jul 29, 2025
Meta logo
Meta
Hard
Software Engineer

Remove minimum invalid mixed brackets

Given a string s containing letters and bracket characters from the set (), [], {}, remove the minimum number of bracket characters so that the result...

Coding & Algorithms
7
0
66 people solved
Feb 17, 2026
Meta logo
Meta
Hard
Software Engineer

Connect next pointers for each tree level

You are given the root of a binary tree where each node has fields left, right, and next (initially null). For every node, set its next pointer to the...

Coding & Algorithms
2
1
27 people solved
Feb 17, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Determine feasibility and clean parentheses string

This pair of problems evaluates proficiency with graph algorithms (dependency modeling and cycle detection/topological ordering) and string processing...

Coding & Algorithms
29
0
195 people solved
Feb 12, 2026
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
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
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
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
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

Explore more Meta Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Software Engineer categories
Browse all