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

Compute BST range sum

Given the root of a binary search tree and two integers low and high (inclusive), compute the sum of values of all nodes with low <= val <= high. Prov...

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

Solve windowed duplicates and target expression

1) Windowed duplicate check: Given an integer array nums and an integer k, determine whether there exist indices i and j such that nums[i] == nums[j] ...

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

Find the kth largest element

Given an unsorted array of n integers and an integer k (1 ≤ k ≤ n), return the k-th largest element without fully sorting the array. Design two method...

Coding & Algorithms
3
0
26 people solved
Aug 12, 2025
Meta logo
Meta
Medium
Software Engineer

Validate a simplified numeric string

Implement isValidNumber (s) that returns true if and only if the ASCII string s represents a valid number under these simplified rules: - Optional lea...

Coding & Algorithms
5
0
59 people solved
Aug 12, 2025
Meta logo
Meta
Medium
Software Engineer

Sort a string by custom order

Sort a string by custom order Given a priority string P of distinct characters and a text string S, reorder S so that all characters appearing in P co...

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

Find power-of-two subarrays within sum range

Find power-of-two subarrays within sum range Given an integer array nums and an integer k, find all subarrays whose length is a power of two and whose...

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

Find buildings with rightward view

Find buildings with rightward view You are given an array of building heights aligned along a street that faces the ocean to the right. Return the ind...

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

Decide palindrome within k deletions

Decide palindrome within k deletions Given a string s and integer k, decide whether s can be transformed into a palindrome by deleting at most k chara...

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

Solve grid shortest path and robot cleaning

Question LeetCode 1091. Shortest Path in Binary Matrix; LeetCode 489. Robot Room Cleaner https://leetcode.com/problems/shortest-path-in-binary-matrix/...

Coding & Algorithms
3
0
39 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Find Lowest Common Ancestor with Parents

Question LeetCode 1650. Lowest Common Ancestor of a Binary Tree III Compute the time and space complexity of your solution https://leetcode.com/proble...

Coding & Algorithms
1
0
11 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Count uniques in sparse sorted array

Question A sorted array contains many duplicates but only a very small number of distinct values. Design an algorithm that counts how many unique numb...

Coding & Algorithms
29
0
10 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Maximize vacation streak with PTO

Question Given an array of characters containing 'w' (workday) and 'h' (holiday) and an integer n representing the number of PTO days you can convert ...

Coding & Algorithms
12
0
10 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Solve LeetCode array & stream problems

Question LeetCode 346. Moving Average from Data Stream LeetCode 249. Group Shifted Strings LeetCode 163. Missing Ranges Remove duplicates from a chara...

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

Solve classic LeetCode problems

Question LeetCode 215. Kth Largest Element in an Array LeetCode 249. Group Shifted Strings Variant of LeetCode 56. Merge Intervals extended to 2-D rec...

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

Solve diameter and shortest bridge problems

Question LeetCode 543. Diameter of Binary Tree LeetCode 934. Shortest Bridge https://leetcode.com/problems/diameter-of-binary-tree/description/ https:...

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

Solve 4 LeetCode algorithm problems

Question LeetCode 636. Exclusive Time of Functions LeetCode 253. Meeting Rooms II LeetCode 314. Binary Tree Vertical Order Traversal LeetCode 215. Kth...

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

Check tree nodes equal subtree average

Question LeetCode 2265. Count Nodes Equal to Average of Subtree – Adapted: Verify that every node’s value equals the average of all values in its subt...

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

Compare two string linked lists

Question Given two singly linked lists where each node stores one character as a string, determine whether the sequences of characters represented by ...

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

Solve various LeetCode data-structure questions

Question LeetCode 129. Sum Root to Leaf Numbers LeetCode 2089. Find Target Indices After Sorting Array LeetCode 270. Closest Binary Search Tree Value ...

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

Design prefix-sum function and max stack

Question LeetCode 303. Range Sum Query – Immutable (design a reusable prefix-sum function) LeetCode 716. Max Stack (similar design question) https://l...

Coding & Algorithms
4
0
15 people solved
Jul 29, 2025

Explore more Meta Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Meta Software Engineer categories
Browse all