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 Locked

Implement fast power and k-palindrome

This question evaluates numerical algorithm design and string algorithm skills, focusing on efficient exponentiation with negative exponents and deter...

Coding & Algorithms
5
0
44 people solved
Apr 1, 2026
Meta logo
Meta
Medium
Software Engineer

Implement a versioned in-memory DB with CAS and history

In-Memory DB V2: TTL + Compare-And-Set/Delete + Historical Reads Implement an in-memory database keyed by (key, field) supporting TTL, conditional upd...

Coding & Algorithms
7
0
73 people solved
Feb 11, 2026
Meta logo
Meta
Easy
Software Engineer

Solve palindrome-check and vertical-order traversal

You are asked to solve two separate coding questions. You do not need to run code; be prepared to explain your approach and walk through examples. Que...

Coding & Algorithms
2
0
40 people solved
Oct 13, 2025
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

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

Return right and left side views of a tree

This question evaluates understanding of binary tree data structures and the competency to identify side views by reasoning about which node is visibl...

Coding & Algorithms
4
0
39 people solved
Jan 5, 2026
Meta logo
Meta
Medium
Software Engineer

Find balanced subarray and increasing tree path

You are given two coding problems. Problem 1: Longest balanced subarray (0/1) Given an integer array nums of length n where each element is either 0 o...

Coding & Algorithms
6
0
64 people solved
Nov 2, 2025
Meta logo
Meta
Easy
Software Engineer Locked

Compute Range Sum Quickly

This question evaluates a candidate's understanding of range-sum queries, array preprocessing techniques and algorithmic complexity for answering mult...

Coding & Algorithms
3
0
49 people solved
Feb 18, 2026
Meta logo
Meta
Medium
Software Engineer

Traverse binary tree by levels with constraints

Given a binary tree and a predicate P(node), perform a level-by-level traversal that collects, for each level, only the nodes whose values satisfy P. ...

Coding & Algorithms
2
0
36 people solved
Sep 6, 2025
Meta logo
Meta
Hard
Software Engineer AI

Solve Two Backtracking Array Problems

You will solve two independent coding problems. For each problem, first discuss edge cases, then implement a correct solution, and finally explain how...

Coding & Algorithms
36
0
292 people solved
Apr 27, 2026
Meta logo
Meta
Medium
Software Engineer

Solve four algorithmic problems

Solve the following coding tasks. For each, describe your approach, complexity, and handle edge cases. 1) Make parentheses string valid with minimal d...

Coding & Algorithms
6
0
51 people solved
Oct 12, 2025
Meta logo
Meta
Medium
Software Engineer

Solve peak element and unique word abbreviation

You are given two independent coding problems to solve. 1) Peak element in an array (binary search) - Input: an integer array nums of length n >= 1. -...

Coding & Algorithms
2
0
38 people solved
Feb 6, 2026
Meta logo
Meta
Hard
Software EngineerSenior+

Solve Subarray Sum and Local Minimum

Two coding problems were reported in the same phone-screen round: 1. Count target-sum subarrays. Given an integer array nums and an integer k, return ...

Coding & Algorithms
5
0
40 people solved
Apr 15, 2026
Meta logo
Meta
Medium
Software Engineer

Find mode or minimum with time-space tradeoffs

For an unsorted array of integers, implement two functions: ( 1) return the minimum value; ( 2) return the value that appears most frequently (the mod...

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

Clone list with random pointers

Question You are given the head of a singly linked list where each node has two pointers: next and random. The random pointer may be null or point to ...

Coding & Algorithms
3
0
46 people solved
Sep 6, 2025
Meta logo
Meta
Hard
Software Engineer AI Locked

Implement a Timestamped Banking System

This question evaluates the ability to design and implement an in-memory, time-ordered stateful system handling event scheduling, transactional update...

Coding & Algorithms
3
0
35 people solved
Apr 8, 2026
Meta logo
Meta
Medium
Software Engineer

Solve sliding window and tree BFS

Solve sliding window and tree BFS Solve a typical medium-level sliding-window problem (e.g., longest substring without repeating characters). LeetCode...

Coding & Algorithms
5
0
51 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Compute interval mode, BST range sum, exclusive time

You are given several independent coding tasks. A) Most frequent integer covered by intervals You are given an integer range [-M, M] and a list of inc...

Coding & Algorithms
2
0
40 people solved
Oct 2, 2025
Meta logo
Meta
Medium
Software Engineer AI

Maximize Unique Characters from Words

You are given a list of lowercase English words. Select a subset of the words such that no character appears more than once across all selected words....

Coding & Algorithms
1
0
13 people solved
Mar 17, 2026

Explore more Meta Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Software Engineer categories
Browse all