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

Find closest BST value and remove parentheses

Question LeetCode 270. Closest Binary Search Tree Value LeetCode 1249. Minimum Remove to Make Valid Parentheses (follow-up: achieve without using a st...

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

Solve tree leaf sum and target indices search

Question LeetCode 129. Sum Root to Leaf Numbers LeetCode 2089. Find Target Indices After Sorting Array (array already sorted; require O(log n) time) h...

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

Check Palindrome and Add Decimal Strings

Question LeetCode 266. Palindrome Permutation – Given a string, determine whether any permutation can form a palindrome. Follow-up: If a palindrome pe...

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

Handle palindrome & decimal addition

Question LeetCode 266. Palindrome Permutation Given two non-negative decimal number strings, implement addition that supports a decimal point. https:/...

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

Solve vertical order & diameter variants

Question LeetCode 314. Binary Tree Vertical Order Traversal LeetCode 543. Diameter of Binary Tree – modified to return the number of nodes (edges + 1)...

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

Design weighted random index picker

Design and implement a data structure that, given an array of positive integer weights w[0..n−1], supports pick() that returns index i with probabilit...

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

Compute longest increasing path in a matrix

Compute longest increasing path in a matrix Given an m × n integer matrix, return the length of the longest path of strictly increasing values, where ...

Coding & Algorithms
1
0
26 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Traverse levels selecting nodes meeting a predicate

Traverse levels selecting nodes meeting a predicate Given the root of a binary tree and a predicate P(value) that returns true for certain node values...

Coding & Algorithms
2
0
17 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Find minimum and most frequent number efficiently

Find minimum and most frequent number efficiently Given an unsorted integer array, write functions to: (a) find the minimum value; and (b) find any va...

Coding & Algorithms
2
0
22 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Find k most frequent elements, discuss O(n)

Find k most frequent elements, discuss O(n) Given an integer array nums of length n and an integer k (where 1 ≤ k ≤ the number of distinct values in n...

Coding & Algorithms
4
0
33 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Produce asymmetric side views of a binary tree

Produce asymmetric side views of a binary tree Given a binary tree, output two sequences: ( 1) Left-bottom-up view: for each depth, the first node vis...

Coding & Algorithms
2
0
43 people solved
Jul 26, 2025
Meta logo
Meta
Medium
Software Engineer

Remove adjacent duplicate groups repeatedly

Remove adjacent duplicate groups repeatedly Given a string s, repeatedly delete any maximal contiguous group of identical characters whose length is a...

Coding & Algorithms
3
0
37 people solved
Jul 26, 2025
Meta logo
Meta
Medium
Software Engineer

Implement string sum and weighted city picker

Implement string sum and weighted city picker Part A — Add two numbers represented as strings: Given two non‑negative integers provided as decimal str...

Coding & Algorithms
3
0
36 people solved
Jul 17, 2025
Meta logo
Meta
Medium
Software Engineer

Implement range-sum tree and sort merged lists

Implement range-sum tree and sort merged lists 1) Given a binary tree whose nodes store integer values, and two integers low and high defining an incl...

Coding & Algorithms
4
0
38 people solved
Jul 16, 2025
Meta logo
Meta
Medium
Software Engineer

Solve two string algorithm tasks

Solve two string algorithm tasks Answer both parts. A) Parentheses correction: Given a string s consisting only of '(' and ')', output the minimum num...

Coding & Algorithms
3
0
25 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Evaluate arithmetic expression without parentheses

Evaluate arithmetic expression without parentheses Write evaluate(s: string) to compute the value of an arithmetic expression containing non-negative ...

Coding & Algorithms
3
0
38 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Implement weighted random index picker

Implement weighted random index picker Design a class WeightedPicker that is initialized with an array of positive integer weights w and supports pick...

Coding & Algorithms
2
0
24 people solved
Jul 15, 2025
Meta logo
Meta
Hard
Software Engineer

Compute tree right view and target-sum subarrays

You are given two separate programming tasks. --- Task 1: Right-side view of a binary tree You are given the root of a binary tree. Imagine standing o...

Coding & Algorithms
3
0
28 people solved
Mar 23, 2025

Explore more Meta Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Software Engineer categories
Browse all