Meta Coding & Algorithms Interview Questions
Master your tech interview with our curated database of real questions from top companies.
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 ...
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...
Implement right side view and local minimum search
Question LeetCode 199. Binary Tree Right Side View — Given the root of a binary tree, return the values of the nodes you can see ordered from top to b...
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...
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:...
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 ...
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...
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...
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 ...
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...
Solve four LeetCode algorithm problems
Question LeetCode 247. Strobogrammatic Number II LeetCode 827. Making A Large Island LeetCode 670. Maximum Swap LeetCode 249. Group Shifted Strings ht...
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...
Handle palindrome & decimal addition
Question LeetCode 266. Palindrome Permutation Given two non-negative decimal number strings, implement addition that supports a decimal point. https:/...
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:/...
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 ...
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...
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...
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...
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...
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...