Meta Coding Interview Questions
93 coding questions reported by candidates who interviewed at Meta, out of 117 Meta questions we track. They average 2.8/5 difficulty (medium). Most common topics: Array, String, DFS, Hashmap. 35 were reported asked within the last year, most recently in October 2026.
Practice Meta questions →Difficulty
- 2/5 — easy30
- 3/5 — medium50
- 4/5 — hard13
Asked for SWE (92), MLE (18), Infra (10), RS (3)
Reported Meta coding questions
Tally Service with Retention Window
3/5This Meta coding interview question challenges candidates to design an efficient data structure that records timestamped events and answers range queries while enforcing a strict sliding retention window. The problem evaluates your ability to manage time-series data, handle out-of-order inputs, and optimize memory cleanup operations for high-throughput services. Access to the full problem statement, algorithmic strategy, and optimal code implementation requires a subscription.
asked October 2026DesignBinary SearchString Abbreviation Matching
3/5Decide whether a shortened form matches a full word, where any digit in the short form stands for that many skipped characters. This Meta question is a two-pointer walk with a specification to respect: multi-digit counts, and the rule that a count may not start with a zero. You will advance the pointers by the decoded amount, reject overruns past the end of the word, and handle a short form that is all digits. Subscribers get the complete problem and the model solution.
asked October 2026StringsParsingTwo PointersResolve a Unix cd Path
2/5Reported during Meta engineering interviews, this navigation puzzle challenges you to normalize Unix-style file system paths following a command. Given a starting working directory and a target destination string, your goal is to compute the resulting absolute path while correctly handling parent directory references, current directory markers, and redundant slashes. It is a fantastic test of stack-based parsing and edge-case management. Unlock the complete walkthrough, time complexity analysis, and clean reference implementation with a subscription.
asked July 2026StringStackBinary Tree Vertical Order & Right Side View
3/5Tree traversal variations are staples of technical screenings at major tech firms, as explored in this Meta interview question. Candidates are challenged to extract specific perspectives of hierarchical nodes, such as vertical column groupings or elements visible from the outer flank. This problem tests your depth-first and breadth-first search mastery alongside custom coordinate mapping. Unlock the complete problem text and optimal solution with a subscription.
asked July 2026TreeBFSDFSCount Distinct Values in a Sorted Array When K Is Small
3/5A coding question on a sorted list that holds a huge number of repeated entries but only a handful of different ones. You count the different entries while reading far fewer elements than the list contains, then reason about when that saving stops paying off.
asked July 2026CodingBinary SearchArrayMerge Three Sorted Arrays Without Duplicates
2/5Featured in technical rounds at Meta, this exercise requires you to combine three pre-sorted collections of integers into a single ordered sequence while eliminating duplicate entries. Instead of brute-force sorting, you must utilize multi-pointer traversal techniques to merge the data in linear time and space proportional to the output. The task evaluates your pointer manipulation skills and efficiency considerations. Reviewing the complete prompt and the optimal algorithmic implementation requires a subscription.
asked July 2026ArrayTwo PointerMergeFind a Local Minimum in an Array
2/5This Meta interview question challenges you to locate any element in an unsorted array that is smaller than both of its immediate neighbors using a logarithmic time approach. By leveraging modified binary search principles on unordered data, you must strategically decide which half of the array to discard based on local slope evaluations. It tests your deep comprehension of binary search invariants and boundary condition handling. Access to the full problem text and the optimized code solution requires a subscription.
asked July 2026Binary SearchArrayContainer with insert and popRandom
3/5A data-structure design question about a collection that stores distinct values and can return a uniformly chosen member while deleting it. It is about combining two structures so that lookup, insertion, and uniform sampling with removal all stay constant time, and keeping their bookkeeping consistent.
asked July 2026CodingDesignHash TableImplement Attention with Flash / Linear Attention Follow-ups
4/5This reported Meta interview question evaluates your ability to code the standard Transformer attention mechanism while properly handling tensor dimensions and complexity analysis. Candidates are also expected to discuss advanced optimizations like hardware-aware scaling and alternative computation patterns during oral follow-ups. Unlock the complete problem breakdown and expert model solution with a paid subscription.
asked June 2026AttentionTransformerComplexity AnalysisMinimum Window Substring
4/5This Meta interview question requires finding the shortest segment within a given text that encompasses every character from a target pattern, maintaining exact frequency requirements. The challenge evaluates your mastery of the sliding window technique and frequency map tracking to achieve an optimal linear time complexity. Efficiently pruning search boundaries is key to avoiding brute-force penalties. Access the complete problem description and expert model solution with a subscription.
asked June 2026StringSliding WindowHashmapAI Coding — Maximum Unique Character Subset
3/5Reported as a Meta interview challenge, this task revolves around selecting a collection of words that maximizes total character coverage while ensuring all chosen letters are completely unique. You must first debug an existing code snippet for edge cases before building a backtracking and bitmasking strategy to efficiently explore valid combinations across various dataset scales. This exercise tests your debugging instincts and combinatorial search optimization under constraints. The complete problem breakdown and verified model solution require a subscription to view.
asked June 2026Ai CodingBacktrackingBitmaskBasic Calculator I / II
3/5This Meta interview question requires parsing and calculating the result of arithmetic string expressions respecting standard operator precedence and grouping parenthesis. Candidates must implement robust parsing logic using stacks or recursive descent to safely evaluate expressions while managing edge cases like invalid syntax and integer division truncation. It is a classic test of compiler design fundamentals and state machine implementation. Unlock the complete problem description and clean model solution with a subscription.
asked June 2026StringParsingStackShortest Unique Prefix
3/5Examine a string processing challenge reported at Meta that requires extracting the shortest unique identifying substring for every item within a collection of words. Candidates must build prefix-checking mechanisms that differentiate each entry from its peers while maintaining initial arrangement order. This task tests tree-based data structures or efficient sorting strategies for string analysis. Unlocking the complete problem details and professional implementation requires an active subscription.
asked June 2026TrieStringPrefixMaze Solver Extension Ladder
3/5Navigate a progressive grid traversal puzzle adapted from artificial intelligence screening sessions at Meta. Working within an existing codebase, developers must incrementally implement pathfinding capabilities and grid manipulation logic through a series of structured iterations. This challenge evaluates clean code practices, modular design, and systematic debugging abilities within a collaborative workspace framework. Discover the complete assignment specifications, test suites, and expert-engineered reference implementations by securing a subscription.
asked June 2026Find a String Containing Another as a Substring
3/5String manipulation and substring containment queries are standard testing grounds at top-tier firms like Meta. This interview question challenges you to inspect a collection of text elements and identify a master string that encapsulates another member of the same collection. Interviewers typically look for progressive optimization, moving from naive nested scans to advanced linear-time pattern matching strategies. The full problem statement, iterative optimization guide, and complete model solution require a paid subscription.
asked June 2026Complexity AnalysisHashsetStringAI Coding: Card Game — Three Cards Summing to 15
3/5Tackle this Meta interview puzzle involving a card-matching game where you must systematically discover combinations that add up to a target sum. You will progress through multiple implementation tiers, ranging from debugging initial draw mechanics to engineering efficient scoring algorithms and optimizing iterative subset selections under strict constraints. This exercise evaluates your proficiency with debugging asynchronous workflows, combinatorial logic, and clean code refactoring. Access to the full problem description, test harnesses, and model solution requires a subscription.
asked June 2026SimulationBacktracking3sumAI Coding: Maze Solver (BFS to Keys/Doors to Bombs)
4/5This Meta interview question is a comprehensive, multi-stage challenge focused on AI-enabled maze solving. Starting with debugging existing code, you'll progressively enhance a pathfinding algorithm. The problem evolves from basic traversal to incorporating complex elements like keys and doors, and eventually dealing with obstacles such as bombs. This tests your ability to apply graph traversal algorithms like BFS or DFS, manage intricate game states, and incrementally build a robust solution while identifying and fixing issues. It's a deep dive into algorithmic problem-solving. The full problem and model solution require a subscription.
asked May 2026BFSBitmaskGridCodeSignal OA — Banking System (Progressive OOD)
4/5This Meta coding assessment simulates a multi-level object-oriented design challenge centered around building a robust banking platform with chronologically ordered transactions. Across progressive tiers, you will implement core account operations, handle secure monetary transfers, and compute real-time financial rankings and activity metrics. The task tests your system architecture skills, clean code organization, and ability to scale classes cleanly under changing requirements. Unlock the complete multi-level requirements and expert solution by subscribing.
asked May 2026CodesignalOODState MachineValid Number
3/5A classic string validation challenge frequently presented by Meta, this interview problem requires you to parse a text sequence to determine if it represents a legally formatted numeric value according to strict grammar rules. Because standard parsing shortcuts are explicitly forbidden, you must carefully construct a robust state machine or parsing logic to handle signs, decimals, exponents, and tricky edge cases. View the detailed parsing logic, corner cases, and production-ready solution by obtaining a subscription.
asked May 2026StringParsingState MachineGroup Anagrams
2/5In this classic Meta interview question, candidates are given a collection of strings and must partition them into clusters of words formed by rearranging the same letters. The challenge tests string manipulation, hashing techniques, and frequency counting to achieve optimal performance. A common follow-up explores sorting the resulting clusters by population size. To view the complete problem description and model code solution, a paid subscription is required.
asked May 2026StringHashmapSortingKth Largest Element / Quickselect
3/5This Meta interview question challenges candidates to efficiently locate the Kth largest element within an unsorted array. It assesses proficiency with selection algorithms, particularly contrasting the average-case linear time performance of Quickselect against heap-based methods. Interviewers often probe deeper into Quickselect's theoretical underpinnings, including its worst-case complexity, the benefits of randomization, and various pivot selection strategies. A common extension involves adapting the solution for scenarios with continuous data insertion. This problem highlights fundamental data structure and algorithm knowledge crucial for optimizing performance. The full problem and model solution require a subscription.
asked May 2026QuickselectHeapArrayWeighted Index Pick via Prefix Sums
3/5Master a clever probabilistic sampling technique frequently discussed in software engineering interviews at Meta. Given an array of positive weights, the objective is to select indices proportional to their relative weight values efficiently. This exercise evaluates your understanding of cumulative frequency arrays, binary search applications, and how to optimize repeated query performance in randomized algorithms. The full problem and model solution require a subscription.
asked April 2026ArrayBinary SearchPrefix SumSubarray Sum Equals K
3/5Counting contiguous segments within an array that sum to a specific target value is a fundamental algorithmic pattern frequently highlighted in Meta technical screenings. This problem tests your ability to handle negative numbers and optimize search times beyond naive nested loops. Utilizing prefix sum techniques combined with hash maps is crucial for achieving an efficient runtime. To read the complete problem description and study the expert model solution, a paid subscription is necessary.
asked April 2026ArrayHashmapPrefix SumWalls and Gates
3/5Featured as a common Meta technical interview challenge, this problem requires you to calculate the shortest path from multiple designated endpoints to every open space on a two-dimensional grid while avoiding obstacles. It tests your proficiency with breadth-first search graph traversal techniques and multi-source distance propagation. You must efficiently update grid cells to reflect minimal traversal steps without exceeding time limits. To view the complete problem breakdown and optimal solution code, a subscription is required.
asked April 2026GridBFSData Engineer AI-Native Full-Stack Round
4/5This comprehensive Meta data engineering interview round simulates a high-stakes scenario combining business case evaluation, dimensional data modeling, and SQL debugging within a single session. It evaluates end-to-end data architecture expertise, problem-solving under constraints, and analytical communication. The full prompt, database schemas, and expert model solutions require a subscription.
asked April 2026SQLData ModelingPythonAI Coding — Friend Recommendation
3/5This Meta technical assessment centers on debugging and expanding a social network suggestion feature. You will fix filtering flaws in an existing codebase, build a randomized candidate selector, and implement a mutual connection scoring algorithm to retrieve top recommendations. It tests your practical software engineering skills and proficiency in handling collections. Get the comprehensive prompt and verified reference solution with a paid subscription.
asked April 2026GraphOOP DesignTop KCompiler Cost Extraction with Inferred Constants
4/5Featured in a Meta coding interview, this task requires building a performance estimator for a basic compiler handling sequential assignment statements. You will parse textual code blocks to calculate overall resource consumption based on distinct operator weights and assignment counts, while also deducing unknown cost metrics from test assertions. The challenge tests your string parsing proficiency, arithmetic logic, and ability to reverse-engineer hidden parameters from structured outputs. To view the complete problem details and detailed solution code, a subscription is necessary.
asked April 2026ParsingThree Address CodeInferenceAlien Dictionary
4/5This classic Meta interview challenge asks you to deduce the correct alphabetical sequence of an unfamiliar language by analyzing a lexicon of words sorted according to its unique rules. Candidates must construct a dependency graph from adjacent word comparisons and perform a topological sort to uncover the valid character order or detect invalid cycles. This problem tests your graph modeling skills and cycle detection techniques under constraints. The comprehensive problem guide and clean model solution are restricted to paid subscribers.
asked April 2026Topological SortGraphBFSDinosaur Speed: Time-Window Sensor Pairing
3/5This classic Meta production engineering interview scenario involves synchronizing timestamp streams captured by physical sensors positioned at a fixed distance apart. You must pair chronologically aligned events within a realistic threshold window to calculate velocity metrics for moving objects. The challenge tests your interval matching, sorting, and time-series data processing capabilities under performance constraints. Unlock the full problem guide and optimized code solution by subscribing.
asked April 2026ArrayBinary SearchIntervalsTree Diameter / Longest Path
3/5Featured as a common technical assessment topic at Meta, this graph theory challenge asks you to determine the maximum distance between any pair of vertices within a hierarchical tree structure. Whether applied to binary trees or generalized multi-child nodes, the exercise tests your mastery of recursive traversal techniques, depth-first search strategies, and how to compute path metrics efficiently across branching pathways. To explore the full problem statement along with a detailed code solution, an active subscription is required.
asked April 2026TreeDFSRecursionMouse and Cheese: Grid Reward Maximization
3/5This Meta interview question presents a fascinating challenge involving pathfinding and reward maximization within a grid environment, offering two distinct variants. The first variant requires you to navigate a known grid from a starting point to an end point, moving only right or down, to collect the maximum possible total reward from cells. The second variant shifts to an unknown maze, where you must explore using a limited API to locate and collect cheese, typically employing search algorithms like DFS with backtracking. This problem effectively tests your dynamic programming skills or graph traversal strategies. The full problem description and a model solution are available with a subscription.
asked March 2026BacktrackingDFSDynamic ProgrammingLongest Consecutive Sequence
3/5Featured frequently in Meta recruitment loops, this classic algorithm problem requires finding the longest contiguous numerical sequence hidden within an unsorted collection. The primary objective is achieving linear time complexity rather than relying on sorting shortcuts. This challenge effectively tests hash set usage and interval boundary expansion logic. Gain immediate access to the full problem guide and an optimal solution by subscribing.
asked March 2026HashsetArrayMedium DifficultyAI-Assisted Project Round (Take-Home Style)
4/5A practical build exercise with AI coding tools: add a content-moderation feature to a small social app, then justify the design and extend it under new requirements. It tests shipping a runnable slice, keeping the scoring separate from the policy, and reasoning about where enforcement belongs.
asked February 2026Ai CodingFullstackContent ModerationLRU Cache
3/5A classic systems coding interview question frequently featured at Meta, this challenge requires designing a fixed-capacity data structure that evicts its least recently accessed elements upon reaching capacity limits. Candidates must ensure that both retrieval and insertion operations run in constant amortized time while accurately tracking usage recency. This scenario heavily tests your proficiency with hash maps and doubly linked lists working in tandem. Unlock the full problem details, optimal complexity analysis, and clean code solution by subscribing.
asked January 2026HashmapLinked ListData StructureLongest Repeating Character Replacement
3/5A string coding question about repeating characters. Given a limited budget of single-character edits, you must determine the longest uniform stretch you can produce, balancing efficiency with careful handling of boundary cases.
asked January 2026Minimum Remove to Make Valid Parentheses
3/5A string-cleanup coding question on bracket balance: from a mix of letters and parentheses, delete the fewest brackets so that the rest is properly matched. It tests which brackets can never be paired, why removing only those is enough, and returning any one of several equally short answers.
asked August 2025Dot Product with Run-Length Encoded Vectors
3/5A coding question on storing vectors with long runs of repeated values compactly and doing arithmetic on them directly. It tests careful pointer handling when two compressed sequences have run boundaries in different places, plus edge cases such as empty input and mismatched lengths.
asked July 2025Efficient ComputationCount Lakes Wrapped by a Given Island
3/5A grid question about a landmass and the bodies of water around it. It tests how carefully a candidate defines "enclosed", handles the grid border, and keeps the solution safe on very large inputs.
asked July 2025DFSGraphSmallest number constructed by odd digits
2/5Pull only the odd digits out of a number and rearrange them into the smallest value they can form. This Meta screening question is deliberately easy and still separates candidates on care: the digits must be selected, then ordered, and the input can run to a thousand digits so string handling beats arithmetic. You will decide how to treat repeated digits and why sorting ascending is sufficient here. The complete problem and the reference solution are available to subscribers.
StringArraySortingFind Pair Closest to K
2/5Find the two values in a sorted array whose sum lands nearest a target, where the best pair may overshoot the target rather than fall short. This Meta phone-screen staple is a two-pointer walk, and the detail that catches people is that closeness is absolute: a sum above the target can beat one below it. You will converge the pointers correctly, track the best distance seen, and settle how ties between equally close pairs resolve. The full problem and reference solution are available with a subscription.
ArrayTwo PointersSortingWord Container with Prefix Membership Queries
3/5This Meta interview challenge evaluates your ability to design an efficient string collection data structure capable of handling text insertion and rapid prefix membership evaluations. You must implement a specialized lookup mechanism that avoids sluggish linear scans when verifying whether any previously stored string acts as a prefix of a query string. The task examines advanced tree-based traversal or indexing strategies to optimize search operations. Access to the full problem description and expert model solution requires a subscription.
TrieStringDesignPlan Round Trip With Minimum Flight Cost
3/5Examine this Meta-reported interview question that tasks you with scheduling a journey by picking an optimal departure and return timeframe to minimize overall expenses under strict sequential conditions. This problem evaluates your ability to leverage prefix or suffix tracking techniques to evaluate paired options efficiently without resorting to brute-force nested iterations. You will discover how to handle custom tie-breaking rules while optimizing costs. Unlocking the thorough problem analysis and verified code solution requires a paid subscription.
ArrayDynamic ProgrammingEnumerating Narrative Sections
3/5Count the segments of a sequence that contain at least a required number of matching value pairs, where each pair must be made of distinct positions. This Meta question is written as a story and is a counting problem underneath, with the usual trick of counting the complement or sliding a window that tracks pair formation. You will keep per-value occurrence counts as the window moves, convert counts into pair totals, and avoid recomputing from scratch at every step. A subscription unlocks the full problem and the model solution.
ArraysSliding WindowPrefix SumVerifying an Alien Dictionary
2/5Frequently asked during technical screening interviews at Meta, this string validation problem requires checking whether a collection of terms is arranged correctly according to a custom, non-standard alphabet sequence. Candidates must implement a comparator or lookup strategy to verify lexicographical ordering based on unfamiliar character priorities rather than traditional ASCII standards. This puzzle is excellent for testing string manipulation fundamentals, hash map usage, and conditional logic. To view the complete problem breakdown and the optimal source code implementation, a subscription is required.
StringHash MapBest Time to Buy and Sell Stock
2/5Mastering financial sequence analysis is essential for technical evaluations, as highlighted by this popular Meta interview question. You are asked to determine the optimal timing for purchasing and liquidating an asset to maximize financial gain based on historical valuation lists. The challenge also includes handling follow-up scenarios involving multiple transaction opportunities while maintaining strict inventory limits. Understanding how to track running minimums and accumulate profitable intervals efficiently is key to passing. Accessing the comprehensive problem breakdown and verified model solution requires an active subscription.
ArrayDynamic ProgrammingGreedyLowest Common Ancestor (BST / Binary Tree / N-ary)
3/5Popular in Meta technical interviews, this problem explores finding the lowest common ancestor across various hierarchical tree structures including binary search trees, standard binary trees, and N-ary variants. It tests recursive traversal strategies, edge cases involving missing nodes, and optimization techniques utilizing parent pointers. Access the complete set of variations and optimal solutions with a subscription.
TreeRecursionLCAMaking a Large Island by Flipping One Zero
4/5Explore this engaging graph traversal challenge frequently featured in Meta technical interviews. Candidates are tasked with analyzing a grid matrix to determine the largest possible contiguous region of connected elements achievable after performing a single targeted modification. This problem evaluates your grasp of connected components, depth-first search strategies, and spatial reasoning under constraints. Master the underlying graph concepts to efficiently evaluate neighborhood expansions without brute-force recalculations. The complete problem description and model solution require a subscription.
GridDFSUnion FindMerge Two Sorted Interval Arrays
3/5This classic algorithmic problem, frequently asked during technical interviews at Meta, requires you to combine two separately sorted collections of closed time intervals into a single consolidated timeline. The exercise tests your ability to handle overlapping ranges efficiently while maintaining the correct chronological sequence. Gaining access to the complete problem specifications, constraints, and the comprehensive model solution requires a paid subscription.
IntervalsSortingMergeShortest Path in a Grid with Obstacle Elimination
4/5This advanced graph traversal problem, commonly asked at Meta, challenges you to find the fastest route across a matrix filled with open pathways and impassable barriers. You must navigate from the top-left corner to the bottom-right while strategically using a limited budget to punch through wall cells. The task evaluates your mastery of breadth-first search and state-space expansion heuristics under strict constraints. Access to the full prompt and the optimal model solution requires a paid subscription.
BFSGridMinimum Add to Make Parentheses Valid
2/5This frequently asked Meta interview question challenges candidates to evaluate sequences of grouping symbols and compute the fewest insertions necessary to ensure every opening token correctly corresponds to a closing counterpart. It tests your ability to track nesting levels and manage state efficiently using linear scanning techniques. By analyzing unmatched characters, you can quickly determine the structural deficit of the text. To explore the complete problem description alongside a fully optimized reference implementation, a paid subscription is required.
StringGreedyStackExpiring Key-Value Cache with TTL
3/5This Meta coding challenge requires you to build an efficient in-memory data store where every stored record includes an expiration timestamp and automatically invalidates past its defined lifespan. The exercise evaluates your knowledge of advanced data structures, priority queues, or bucketed time management to handle insertions, lookups, and active item counting within strict performance boundaries. Mastering time-decay constraints in data engineering interviews is crucial for low-latency backend roles. Reviewing the complete problem statement and production-ready code solution requires a subscription.
DesignHash MapWalls and Gates / Max Area of Island
3/5This Meta interview question explores dual matrix traversal techniques, combining shortest path determinations and connected component measurements. You will work with two-dimensional grids to compute spatial distances from specific markers or measure the extent of contiguous regions using graph search algorithms like breadth-first or depth-first search. The problem tests your spatial reasoning, matrix manipulation skills, and optimization strategies for grid-based data structures. Explore the complete problem overview and comprehensive solution by purchasing a subscription.
GridBFSDFSGenerate All Subsets (Power Set) of {'a', 'b', 'c'}
2/5Produce every subset of a small set of characters, including the empty one, with each combination appearing exactly once. This Meta warm-up has two standard answers worth being able to switch between: recursive include-or-exclude branching, and iterating over bitmasks. You will avoid duplicates, decide on an output order, and explain why the result count is exponential in the input size. Subscribers get the complete problem and the reference solution.
BacktrackingRecursionCombinatoricsCalculate Sum and Product
2/5Return both the total and the running product of a list of integers from a single routine. This Meta warm-up is about care rather than cleverness: a zero anywhere collapses the product, negatives flip its sign, and the product grows far faster than the sum as the list gets longer. You will accumulate both in one pass, choose sensible values for an empty list, and comment on the magnitude the product can reach. Subscribers can read the full problem and the reference solution.
ArrayMathImplementationSum Root-to-Leaf Numbers
3/5Explore this intriguing tree traversal problem frequently encountered in technical interviews at Meta. The objective is to evaluate numeric sequences formed by traversing hierarchical nodes from the uppermost starting point down to the terminal endpoints. This exercise tests your ability to navigate tree data structures efficiently and apply recursive logic to aggregate values. Discovering the optimal traversal strategy and implementing a clean algorithm will sharpen your recursive problem-solving skills. The complete problem statement and model solution require a subscription.
TreeDFSEmit Threshold Warning on Metric Breaches
2/5Test your text-parsing and data-monitoring skills with this log analysis problem reported during interviews at Meta. The challenge requires you to scan structured text rows sequentially, extract specific numerical columns, and trigger an alert once a defined threshold is breached a certain number of times. This question evaluates your string manipulation abilities, stream processing logic, and edge-case handling for malformed data. The complete problem statement and model solution require a subscription.
StringParsingValid Sudoku Without Hash
3/5Check a filled Sudoku grid for rule violations across rows, columns, and boxes, with hash-based containers explicitly off the table. This Meta question turns a routine validation into a representation puzzle: without a set, the natural answer is a fixed-size boolean array or a bitmask per group. You will index the nine boxes correctly from row and column, skip blank cells, and keep the whole check to a single pass. The complete problem and the model solution are available with a subscription.
ArrayMatrixSimulationMinimum Remove to Make Valid Parentheses
3/5Tackle a classic string manipulation puzzle widely utilized in Meta coding interviews. This challenge evaluates your proficiency with stack data structures and your ability to sanitize malformed text sequences by removing the fewest elements necessary to achieve structural validity. You will also consider advanced variations involving multiple nested symbol hierarchies simultaneously. To access the comprehensive explanation, complexity analysis, and fully tested model solution, unlock your premium subscription today.
StringStackMedium DifficultyFind a String Containing Another as Substring
2/5This frequently asked Meta interview question evaluates your ability to process text collections and efficiently evaluate string containment relationships. You will need to inspect a collection of textual elements to identify the initial entry that embeds another member of the same set as a constituent part. This challenge tests fundamental string manipulation and search optimization techniques. Access to the complete problem breakdown and the optimal model solution requires a subscription.
StringBrute ForceEvaluate an Arithmetic Expression Without Parentheses
3/5Encountered frequently during technical screens at Meta, this coding challenge requires you to safely parse and compute mathematical expressions containing basic arithmetic operators without relying on parentheses. You must correctly handle operator precedence where multiplication and division take priority over addition and subtraction, while also validating the expression string for malformed inputs or division by zero errors. Access to the full problem statement, test cases, and optimal model solution requires a subscription.
StringStackParsingBar and Foo
3/5Find the longest word from a list that can be spelled by deleting characters from a given string without reordering what remains, preferring the alphabetically smallest on a tie. This Meta question is a subsequence check repeated across candidates, and the interesting part is the ordering rule layered on top. You will test each candidate with two pointers, compare by length then alphabetically, and reason about the cost when both the string and the list are large. Subscribers get the complete problem and the model solution.
StringSortingSearchFind Peak Element
3/5As reported in Meta interviews, this classic algorithmic problem requires you to efficiently locate a local maximum within a dataset without performing a linear scan. You must apply modified binary search principles to navigate through multidimensional or single-dimensional spaces while adhering to strict logarithmic performance bounds. The task measures your grasp of divide-and-conquer paradigms and boundary condition handling. Unlock the comprehensive analysis and optimal implementation details by subscribing today.
ArrayBinary SearchBoundariesCompare Concatenations of Two String Lists
2/5This Meta interview question examines your ability to compare aggregate string values formed by fragmented list components without allocating extra memory for full concatenations. The core challenge involves implementing an incremental traversal strategy that processes character sequences lazily in linear time relative to total length. To view the complete problem statement and optimal code solution, please subscribe.
StringTwo PointerRange Sum of BST
2/5This classic tree traversal task, commonly asked in technical rounds at Meta, requires you to calculate the aggregate value of nodes residing within a specified numerical interval. The exercise evaluates your grasp of hierarchical data structures and optimal traversal strategies that bypass unnecessary branches based on ordering constraints. Mastering this problem enhances your ability to write efficient recursive or iterative algorithms that scale effectively with tree height rather than total node count. Unlock the full problem statement, advanced follow-up discussions, and a complete code solution by upgrading to a paid subscription.
TreeBSTDFSValid Palindrome II
2/5This string manipulation exercise, frequently encountered in screening interviews at Meta, challenges you to determine if text symmetry can be achieved by removing a limited number of elements. The exercise evaluates your proficiency with two-pointer techniques, string slicing boundaries, and handling conditional branching efficiently. Additionally, advanced variations push you to generalize the logic for a larger number of allowed deletions, testing deeper algorithmic optimization. Gain full access to the comprehensive problem description, detailed test cases, and optimal solutions by subscribing today.
Two PointerStringPalindromePow(x, n) — Fast Exponentiation
2/5Frequently asked in Meta technical interviews, this task asks developers to compute numerical exponentiation efficiently for both positive and negative powers, aiming for logarithmic time complexity. Additionally, candidates may be asked to handle modular arithmetic extensions to prevent integer overflow during large calculations. This exercise tests your grasp of divide-and-conquer paradigms, bit manipulation, and mathematical optimizations in coding. To access the full problem walkthrough and the reference implementation, you will need a subscription.
MathRecursionBinary ExponentiationShortest Maze Path with Keys and Doors
4/5Highlighted as a rigorous Meta interview problem, this graph traversal challenge asks you to find the shortest path through a grid laden with obstacles, locked barriers, and corresponding keys. Navigating successfully requires tracking your acquired inventory alongside your physical coordinates to ensure you can unlock pathways dynamically as you move. This tests advanced pathfinding algorithms, state-space graph modeling, and breadth-first search variations. Securing access to the complete puzzle breakdown and optimal solution requires a subscription.
BFSGridBitmaskCount Card Triples Summing to Fifteen
2/5Presented in Meta technical screens, this engaging card-game puzzle requires you to find the total number of unique index triplets whose corresponding numeric values add up to a fixed target sum. The exercise evaluates your ability to optimize nested loops and leverage frequency counting or hashing to reduce time complexity. Designing an efficient lookup strategy is crucial for passing larger datasets within time limits. To view the complete problem statement and discover the optimal solution, a paid subscription is required.
ArrayEnumerationLowest Common Ancestor of a Binary Search Tree
2/5Mastering tree traversal algorithms is essential for passing technical screens at top firms like Meta. This coding challenge requires candidates to construct a hierarchical tree structure and determine the shared ancestor node for a given pair of elements. The problem tests your ability to leverage the ordered properties of hierarchical data structures efficiently without performing exhaustive searches. To view the comprehensive problem breakdown and examine the complete expert solution, a subscription is required.
TreeBSTContinuous Subarray Sum
3/5Examine a popular sequence-processing challenge frequently featured in technical assessments at Meta. You are asked to inspect an array of integers to determine whether a contiguous segment of sufficient length exists whose combined elements form a clean multiple of a specified divisor. This exercise tests your understanding of prefix sums, modular arithmetic, and hash-based frequency tracking for efficient lookups. Unlock the full problem description, optimal time complexity strategies, and reference solution by upgrading to a paid subscription.
ArrayPrefix SumHashmapWiggle Sort
3/5Rearrange an array so that its values rise and fall alternately from one position to the next. This Meta question has a tidy linear answer that surprises people who reach for a sort first: a single pass that swaps any neighbouring pair pointing the wrong way is enough, and the fix never breaks the pair before it. You will prove that local swaps suffice, handle arrays with repeated values, and cover the one- and two-element cases. Subscribers can read the complete problem and the model solution.
ArraySortingGreedyFind Index of Maximum Number in List with Duplicates
2/5Return a position holding the largest value in an unsorted list, where the largest value may occur more than once. This Meta warm-up is a single scan, and the only decision worth stating is which position you return when the maximum repeats, since the problem explicitly allows any of them. You will keep the comparison strict or loose on purpose, avoid a second pass, and handle a single-element list. A subscription unlocks the full problem and the reference solution.
ArrayScanIndicesCount Shortest Paths in a Binary Grid
4/5This Meta interview problem challenges you to navigate a matrix containing open paths and barriers to find all minimal distance routes between two corners. It tests your mastery of graph traversal algorithms, dynamic programming, and combinatorial counting techniques under modular arithmetic constraints. You must carefully handle unreachable destinations and overlapping potential routes. To explore the full problem statement and study the optimal algorithmic solution, a paid subscription is required.
BFSGridDynamic ProgrammingCount Good Nodes in Binary Tree Based on Root Path Values
2/5Count the nodes of a binary tree whose value is at least as large as every value on the path down from the root. This Meta question is a traversal that carries context: the running maximum along the current path is the only state needed, and it must be passed down rather than kept globally. You will update that maximum as you descend, count on the way, and handle negative values without a special case. Subscribers get the complete problem and the model solution.
Binary TreeDFSRecursionAds Ranking Algorithm
3/5Order a set of adverts by three metrics applied in priority order, returning just the identifiers. This Meta question is a custom-sort exercise, and the thing it checks is whether you express a multi-key comparison as one key tuple rather than as nested comparisons. You will get the descending direction right on every field, decide what breaks a complete tie, and keep the sort stable where the specification leaves a choice. The complete problem and the reference solution are available to subscribers.
SortingArraysCustom SortMaximum Path Sum in a Grid
3/5Reported as a common Meta interview challenge, this matrix navigation task requires finding an optimal trajectory from the upper-left corner of a numeric grid to the bottom-right destination. Because movement is restricted to specific directions and cells may contain negative integers, candidates must carefully compute cumulative weights to maximize the final tally. This exercise evaluates proficiency in dynamic programming and grid-based traversal strategies. Unlock the comprehensive problem statement, thorough algorithmic analysis, and clean production-ready code with our subscription.
GridDynamic ProgrammingSparse Vector Dot Product
2/5This classic Meta interview question focuses on optimizing mathematical operations for highly sparse datasets where most values are zero. Instead of using standard matrix multiplication, candidates must design a compact data structure and an efficient algorithm to compute the dot product of two vectors by only evaluating meaningful non-zero entries. This challenge examines your knowledge of memory-efficient representations and algorithmic optimization techniques. Gain access to the full problem breakdown and a clean, tested solution by subscribing.
Hash MapArrayMajority Element
2/5Find the one value that occupies more than half the positions of an array, given that such a value is guaranteed to exist. This Meta question is asked to see whether you know the constant-space voting technique rather than the obvious counting map: a single candidate and a running balance are enough. You will explain why the cancellation argument works, and note what changes if the guarantee is removed. A subscription unlocks the full problem and the model solution.
ArrayHashmapCountingRemove Nth Node From End of List
2/5Featured frequently in Meta technical assessments, this linked list manipulation puzzle requires candidates to locate and eliminate a target element positioned at a specific offset from the collection's tail. The core challenge evaluates pointer manipulation proficiency and tests your ability to traverse the sequence efficiently within a strict single-pass constraint without relying on length pre-calculation. To access the full problem description and verified model solution, a subscription is required.
Linked ListTwo PointerSentinelMax Area of Island
3/5Explore spatial navigation and matrix manipulation in this popular coding challenge often asked during Meta technical interviews. Given a two-dimensional map populated with land and water segments, you are asked to measure the extent of the most expansive contiguous landmass formed through orthogonal connections. This exercise tests fundamental matrix traversal patterns using recursive or iterative exploration techniques. To view the complete problem statement along with the optimal software solution, a subscription is required.
GridDFSSum of Elements Between Two Numbers
2/5Add up the entries of an unsorted array that fall inside an inclusive range of values. This Meta warm-up is one pass, and the only things to settle are whether the bounds are inclusive at both ends and what happens when the range is empty or inverted. You will avoid sorting, which buys nothing here, and say when sorting would pay off if the query repeated many times. A subscription unlocks the full problem and the reference solution.
ArrayPrefix SumRange QueryBinary Tree Boundary Sequence
3/5Reported as a classic Meta coding interview challenge, this problem requires you to extract the perimeter nodes of a binary tree in a very specific order. You will need to trace both the left and right outer boundaries while ensuring that shared elements are accounted for without duplication. This task evaluates your mastery of tree traversal techniques, recursive logic, and edge-case handling. Unlock the full problem statement and optimized model solution with a subscription.
TreeTraversalCharacter Subset
2/5Pick out the words from a list that can be spelled using only an allowed set of letters. This Meta question is a filtering exercise with one specification question that has to be settled before coding: whether a letter may be reused more times than the allowed set contains it. You will decide between a membership test and a frequency comparison, state the reading you chose, and keep the scan linear in the total input size. The complete problem and the reference solution are available to subscribers.
StringsArraysHashingReverse Elements in Array
2/5Reverse the portion of an array lying between two given positions, and survive every bad argument the caller might pass. This Meta question is explicitly about the guards: positions out of order, positions outside the array, and a missing array altogether are all named in the statement. You will swap inward from both ends, decide whether to clamp or reject invalid positions, and leave the rest of the array untouched. A subscription unlocks the full problem and the reference solution.
ArrayTwo PointersEdge CasesFind How Many Subarrays Match The Pattern
3/5Count the windows of a number list whose step-by-step rises, falls, and plateaus match a given symbol sequence. This Meta question is dressed up as a fable and reduces to comparing the sign of each difference against the pattern. You will translate the list into signs once, slide the pattern along it, and decide whether to reach for a linear-time string matcher or accept the direct comparison. Subscribers can read the full problem and the model solution.
ArraysTwo PointersPattern MatchingPython Function for Data Processing
2/5Filter a list of sales records down to the distinct customers who spent above a threshold in a particular year. This Meta question is everyday data work with three conditions to combine, and the date handling is where most of the errors live. You will parse the date robustly rather than slicing the string blindly, deduplicate the names, and decide whether the output order is specified or your choice. The complete problem and the reference function are available to subscribers.
PythonArrayHashmapClosest Land Mark
2/5Find the distance from a given number to the nearest term of the Fibonacci sequence. This Meta question is a generate-and-compare exercise, and the growth rate is the thing that makes it easy: the terms climb so fast that only a few dozen are ever relevant. You will generate until you pass the target, compare the neighbours on both sides, and handle a target that is itself a term. A subscription unlocks the complete problem and the reference solution.
MathSimulationFibonacciMaximum Length of Concatenated Unique-Character String
4/5In this engaging algorithmic problem reported by Meta, you are asked to find the longest possible text combination formed by selecting specific strings while avoiding any duplicate characters. The task examines your backtracking and combinatorial search techniques to efficiently evaluate subsets without overlapping letters. It is an excellent test of recursive problem-solving and optimization under constraints. Unlock the comprehensive problem details and optimal source code with a subscription.
BacktrackingBitmaskBuild Blocks and Obstacles on a Number Line
3/5Handle a stream of operations that either drop an obstacle onto an endless line or ask whether a block of a given size fits starting at a position. This Meta question is about picking the structure before the first operation: queries concern free gaps, so keeping obstacle positions sorted turns each answer into a neighbour lookup. You will insert in order, compare against the nearest obstacle in range, and keep each query logarithmic rather than linear. A subscription unlocks the complete problem and the reference solution.
IntervalsArraysSimulationImplement Modified Intersection
2/5Return every value that appears in either of two integer arrays, each one listed once. This Meta warm-up is deliberately the mirror image of the intersection question, so the interviewer is checking that you read which operation was asked for. You will combine both inputs into one collection of distinct values, decide whether the output order matters, and handle an empty array on either side. The complete problem and the reference solution are available to subscribers.
ArrayHashmapSetRank Stories and Filter by Offset
3/5Return a minimum number of top-ranked stories from a source that hands back only a few at a time and may repeat itself. This Meta question is about the loop around an unreliable producer: you call it repeatedly, accumulate what it gives you, and stop once you have enough distinct results. You will deduplicate across calls, apply the offset after ranking rather than before, and avoid an unbounded loop when the source dries up. Subscribers get the complete problem and the model solution.
ArrayHashmapSortingValid Number String Parsing
3/5Asked during a Meta coding interview, this validation challenge requires you to determine whether a given text sequence accurately represents a properly formatted numeric value. The exercise tests your string parsing abilities, attention to edge cases, and proficiency in handling optional signs, decimal points, and scientific notation exponents. Crafting a robust solution involves managing various state transitions cleanly. Access the complete problem text and professional solution by subscribing today.
StringState MachineVariant of BST Level Order Traversal
3/5Traverse a binary search tree level by level, reversing the direction on alternate levels. This Meta question is a breadth-first sweep with one extra decision, and the cleaner answer reverses the collected level rather than pushing children in a different order. You will track the level index, keep the queue logic uniform, and handle a tree with a single node. The full problem and the model solution require a subscription.
Binary TreeBFSLevel Order Traversal
Recent Meta interview experiences
Full loops shared by candidates, every round included.
Meta phone — Verifying an Alien Dictionary (LC953) + a one-skip palindrome
A Meta phone screen — a string/ordering problem plus a two-pointer follow-up. Also genuinely unclear whether Meta had really un-frozen, so I'm posting to compare notes on the current req situation.
Meta onsite — two research-design rounds + behavioral
MLE/Research PhD loop: two research-design rounds (open scenarios plus language-model topics, including a linear-attention discussion) and one behavioral round. The recruiter seemed specifically dedicated to the MSL/MRS tracks.
Meta AI-assisted coding — bug-fix → implement → optimize, and the hidden follow-ups got me (fail)
Meta's newer AI-assisted coding format caught me off guard. It looks like one problem, but it's got staged, unannounced follow-ups you have to finish in the time limit — very different from the traditional "we'll tell you how many questions and give you a break" flow. Didn't pass.
Meta coding interview FAQ
- What coding questions does Meta ask?
- 93 reported coding questions, most often on Array, String, DFS, Hashmap, Grid.
- How hard is the Meta coding interview?
- The reported coding questions average 2.8 out of 5: 30 at 2/5, 50 at 3/5, 13 at 4/5.
- Are these Meta coding questions recent?
- The most recent report is from October 2026, and 35 were reported within the last twelve months. Dates come from the interview reports themselves.