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

Maintain top N payers

Maintain top N payers Implement topNPayers(n) that returns the n accounts with the highest cumulative outgoing payment amounts as strings formatted "{...

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

Check near-palindrome with one deletion

Check near-palindrome with one deletion Given a string s, determine whether it can become a palindrome after deleting at most one character. Return bo...

Coding & Algorithms
3
0
28 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute binary tree diameter

Compute binary tree diameter Given the root of a binary tree, compute the tree's diameter defined as the maximum number of edges on any path between t...

Coding & Algorithms
4
0
44 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute weighted sum of nested lists

Compute weighted sum of nested lists Given a nested collection that can contain integers or other nested collections, compute the depth-weighted sum w...

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

Solve UTF-8 Validation & Shortest Path

Question LeetCode 393. UTF-8 Validation LeetCode 1091. Shortest Path in Binary Matrix https://leetcode.com/problems/utf-8-validation/description/ http...

Coding & Algorithms
2
0
37 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Solve weighted pick and product except self

Question LeetCode 528. Random Pick with Weight LeetCode 238. Product of Array Except Self https://leetcode.com/problems/random-pick-with-weight/descri...

Coding & Algorithms
5
0
36 people solved
Aug 4, 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

Solve LeetCode stack and tree problems

Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 863. All Nodes Distance K in Binary Tree https://leetcode.com/problems/minim...

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

Solve three LeetCode coding problems

Question LeetCode 1249. Minimum Remove to Make Valid Parentheses LeetCode 827. Making A Large Island LeetCode 199. Binary Tree Right Side View https:/...

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

Find integer in most intervals

Question Given N integer intervals [ai, bi] (positive integers), find an integer that belongs to the maximum number of intervals (return any such inte...

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

Solve island connectivity and string multiplication

Question Given N distinct islands (e.g., a, b, c…) and a list of existing undirected paths between them, compute the minimum number of additional path...

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

Solve island and frequency problems

Question LeetCode 200. Number of Islands – given a 2D grid, count the number of connected islands of '1's using DFS/BFS/Union-Find. LeetCode 695. Max ...

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

Solve diverse LeetCode algorithm problems

Question LeetCode 695. Max Area of Island LeetCode 380. Insert Delete GetRandom O( 1) LeetCode 19. Remove Nth Node From End of List LeetCode 1004. Max...

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

Evaluate expression without stack, constant space

Evaluate expression without stack, constant space Given a string s representing a valid arithmetic expression of non-negative integers, the operators ...

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

Solve increasing sequence and path problems

Solve increasing sequence and path problems Answer the following related tasks about increasing sequences and paths: a) Contiguous subarray: Given an ...

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

Solve binary tree, grid, and heap tasks

Solve binary tree, grid, and heap tasks Answer the following independent coding tasks: 1) Range sum in a BST: Given the root of a binary search tree a...

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

Solve tree traversal and two-pointer problems

Solve tree traversal and two-pointer problems Implement the following independent problems: 1) Vertical columns: Given a binary tree, return lists of ...

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

Copy linked list with random pointers efficiently

Copy linked list with random pointers efficiently Given the head of a singly linked list where each node has next and random pointers, create a deep c...

Coding & Algorithms
1
0
31 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Merge two sorted arrays in-place

Merge two sorted arrays in-place You are given two sorted integer arrays nums1 and nums2, both sorted in non-decreasing order. - nums1 has length m + ...

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

Maximize number with one digit swap

Maximize number with one digit swap Given a non-negative integer n (as an int or string), perform at most one swap of two digits to produce the maximu...

Coding & Algorithms
2
0
31 people solved
Jul 15, 2025

Explore more Meta Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Software Engineer categories
Browse all