Meta Interview Questions: SWE Coding Patterns, AI-Enabled Round and Prep (2027 Guide)
A free, detailed guide to Meta interview questions for software engineers (formerly Facebook): the coding patterns most frequently reported in public Meta SWE interview experiences, LeetCode practice problems with original approach notes, tested Python solutions, and how the Meta technical screen, full loop, design rounds, behavioral round and the newer AI-enabled coding interview work.
Independent community guide; not affiliated with or endorsed by Meta.
Last reviewed: December 2026
Honest scope. Meta does not publish its question bank. Nothing here is official or leaked. Process facts come from Meta’s own candidate guides (linked below) or are clearly marked as publicly reported. The practice problems are public LeetCode problems that train the patterns candidates most often describe. Approach notes and the code in solutions/ are original.
Table of Contents
- The Meta SWE interview process
- The technical screen
- The full loop
- The AI-enabled coding interview
- How Meta scores coding interviews
- Coding patterns and practice problems
- System design and product architecture
- The behavioral interview
- Study plans
- Expectations by level
- Speed drills for two problems in 35-40 minutes
- Best resources
- Running the solutions
- FAQ
- Where to go next
- Contributing
The Meta SWE interview process
Meta publishes two prep pages with downloadable guides: Preparing for your technical screen and Preparing for your full loop interview. The key facts from those guides:
| Stage | Official details | Notes |
|---|---|---|
| Recruiter call | Background, level, timeline | Ask which design interview type you will get and whether you have an AI-enabled round |
| Technical screen | One 45-minute interview: about 5 minutes of introductions, 35 minutes of coding (two problems), 5 minutes for your questions | Collaborative online editor such as CoderPad if virtual |
| Full loop | 4 to 6 interviews of 45 minutes each: coding, design and behavioral | Number of each type depends on level |
| Decision | Recruiter shares next steps; follow up if you have not heard within a week | Commonly reported: team matching after a positive decision for many roles |
The technical screen
Straight from Meta’s screen guide:
- Two coding problems on CS fundamentals: algorithms, data structures, recursion, binary trees.
- Meta’s tip is to aim for confidently solving one to two questions while thinking aloud in about 35 minutes, and to practice medium and hard problems in under 15 minutes each.
- Meta says it will not ask “puzzle” questions, but problems may feel contrived because they must be solvable in 10-20 minutes. They may test versatility (solve it, then solve again with new constraints), edge-case-heavy parsing, or implementing well-known library functions.
- Tell the interviewer if you have seen the problem before.
The full loop
| Interview | Length | Who gets it | Official focus |
|---|---|---|---|
| Coding (usually two) | 45 min each | All levels | About two problems in about 40 minutes; Meta’s guide says the interviewer will not compile your code |
| AI-enabled coding (reported, replaces one coding round) | about 60 min | Many SWE candidates since late 2025 | See the next section |
| System design or product architecture | 45 min | Usually mid-level and above (E5+) | Systems design: distributed systems, scalability, performance. Product architecture: API design, usability, client-server |
| Behavioral | 45 min | All levels | Conflict, growth, ambiguity, driving results, communication |
Two facts from Meta’s official full loop guide that change how you should prepare:
- “We do not ask dynamic programming questions.” Meta’s guide says this explicitly and tells candidates not to spend time on DP. Put that time into graphs, trees, arrays, strings, heaps and parsing.
- Breadth over depth. Meta recommends practicing many problem types instead of going deep on one.
Meta’s guides also ask candidates not to use any unauthorized outside assistance, including AI tools like ChatGPT, and to disable video filters and virtual backgrounds.
The AI-enabled coding interview
Public reports describe a newer Meta coding round where an AI assistant is built into the interview environment. Meta’s downloadable guides linked above do not describe it, so treat these details as reported, and confirm with your recruiter:
| Detail | What is publicly reported |
|---|---|
| Start | Rolled out from about October 2025 |
| Length and tool | About 60 minutes in CoderPad, with a file explorer, editor and an AI chat panel |
| Problem shape | One multi-file problem in phases: fix a bug, implement the core logic, then optimize against larger tests |
| AI rules | Only the built-in assistant is allowed; outside tools are not |
| Who | Reported to replace one of the two coding rounds for many SWE candidates |
| Scoring | The same areas as other coding rounds: problem solving, code quality, verification, communication; over-reliance on AI without understanding is a negative signal |
A detailed third-party write-up is Hello Interview’s guide to Meta’s AI-enabled coding interview. Practical preparation:
- Read code fast. Practice opening an unfamiliar multi-file project and explaining it in two minutes.
- Prompt precisely. Ask the assistant for small, checkable pieces (“write a function that parses one line in this format”), not the whole solution.
- Verify everything. Run tests, read every generated line, and be ready to explain it.
- Keep talking. Candidates report that narrating while juggling the AI is the hardest part.
- Ask for the practice environment. Recruiters reportedly share a practice pad before the interview.
How Meta scores coding interviews
Meta’s guides list four focus areas for coding interviews and the technical screen:
| Focus area | Meta’s question to itself (summarized) | How to show it |
|---|---|---|
| Communication | Are you clarifying requirements, or just diving in? | Ask 2-3 sharp questions, restate the problem |
| Problem solving | Do you compare solutions, pick fitting data structures, discuss complexity, optimize? | Say brute force, then the optimal idea and why |
| Coding | Can you turn the idea into organized, correct code? | Clean structure, helper functions, no pseudo-code |
| Verification | Do you test reasonably and find your own bugs? | Dry-run an example and an edge case before saying “done” |
Because there are two problems in about 35-40 minutes, speed with accuracy matters more at Meta than at most companies. See the speed drills.
Coding patterns and practice problems
Meta reports concentrate on arrays and strings, binary trees, graphs, heaps, intervals, stacks and parsing, with very little DP. Problems marked “Solution included” have tested code in solutions/meta.py. “Premium (paid)” problems need LeetCode Premium; every section has free ones.
1. Strings and two pointers
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 680. Valid Palindrome II | Easy | Free | Two pointers; on the first mismatch, try skipping either the left or the right character once. Solution included. |
| 2 | 125. Valid Palindrome | Easy | Free | Two pointers skipping non-alphanumerics, compare lowercase. |
| 3 | 408. Valid Word Abbreviation | Easy | Premium (paid) | Walk both strings; parse numbers (no leading zeros) and skip that many characters. |
| 4 | 415. Add Strings | Easy | Free | Add digits from the right with a carry; no int conversion of the whole string. |
| 5 | 88. Merge Sorted Array | Easy | Free | Fill from the back of nums1 with three pointers. |
| 6 | 977. Squares of a Sorted Array | Easy | Free | Two pointers from both ends; write the larger square at the back. |
| 7 | 791. Custom Sort String | Medium | Free | Count letters of s, emit them in order’s order, then the rest. |
| 8 | 249. Group Shifted Strings | Medium | Premium (paid) | Key each string by the tuple of letter differences mod 26. |
| 9 | 8. String to Integer (atoi) | Medium | Free | Careful state machine: spaces, sign, digits, clamp to 32-bit range. |
2. Stacks and parsing
Parsing with a stack is one of the most frequently reported Meta themes.
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 1249. Minimum Remove to Make Valid Parentheses | Medium | Free | Stack of indices of unmatched “(“; mark unmatched “)” as you go; drop all marked indices. Solution included. |
| 2 | 921. Minimum Add to Make Parentheses Valid | Medium | Free | Count open balance; add one whenever it would go negative. |
| 3 | 20. Valid Parentheses | Easy | Free | Stack of expected closers. |
| 4 | 227. Basic Calculator II | Medium | Free | Keep the last operator; push for + and -, combine immediately for * and /. Solution included. |
| 5 | 224. Basic Calculator | Hard | Free | Stack of (result, sign) at each “(“; handles unary minus. |
| 6 | 71. Simplify Path | Medium | Free | Split on “/”, use a stack, “..” pops, “.” and empty are skipped. Solution included. |
| 7 | 636. Exclusive Time of Functions | Medium | Free | Stack of running function ids; charge elapsed time to the top on each log event. |
| 8 | 301. Remove Invalid Parentheses | Hard | Free | BFS by number of removals, stop at the first level with valid strings. |
| 9 | 65. Valid Number | Hard | Free | Single pass with flags for digit seen, dot seen, exponent seen. |
3. Arrays, hashing and prefix sums
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 560. Subarray Sum Equals K | Medium | Free | Prefix sum counts in a dict. Solution included. |
| 2 | 523. Continuous Subarray Sum | Medium | Free | Store the first index of each prefix sum mod k; a repeat at distance at least 2 means yes. |
| 3 | 238. Product of Array Except Self | Medium | Free | Prefix and suffix products. |
| 4 | 31. Next Permutation | Medium | Free | From the right, find the first drop, swap with the next larger value to its right, reverse the suffix. |
| 5 | 670. Maximum Swap | Medium | Free | Record each digit’s last index; swap the first digit that has a larger digit later. |
| 6 | 1570. Dot Product of Two Sparse Vectors | Medium | Premium (paid) | Store (index, value) pairs; two-pointer merge on indices. |
| 7 | 528. Random Pick with Weight | Medium | Free | Prefix sums plus binary search on a random number in [1, total]. Solution included. |
| 8 | 1004. Max Consecutive Ones III | Medium | Free | Sliding window that allows at most k zeros. |
| 9 | 1539. Kth Missing Positive Number | Easy | Free | Binary search on arr[i] - i - 1 (how many are missing before i). |
| 10 | 766. Toeplitz Matrix | Easy | Free | Every cell equals its top-left neighbor. |
| 11 | 498. Diagonal Traverse | Medium | Free | Group by i + j, reverse every other group. |
4. Binary search
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 34. Find First and Last Position of Element in Sorted Array | Medium | Free | Two lower-bound searches: for target and for target + 1. |
| 2 | 162. Find Peak Element | Medium | Free | Move toward the larger neighbor. |
| 3 | 50. Pow(x, n) | Medium | Free | Fast exponentiation by squaring; handle negative n. Solution included. |
| 4 | 33. Search in Rotated Sorted Array | Medium | Free | One half is sorted; check whether the target is inside it. |
5. Binary trees
Meta interviewers frequently ask tree traversals with a twist (columns, views, sums, conversions).
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 314. Binary Tree Vertical Order Traversal | Medium | Premium (paid) | BFS carrying a column index; group by column; BFS order keeps top-to-bottom, left-to-right ties. |
| 2 | 199. Binary Tree Right Side View | Medium | Free | BFS per level, take the last node; or DFS right-first recording the first node per depth. Solution included. |
| 3 | 938. Range Sum of BST | Easy | Free | DFS, pruning subtrees outside [low, high] using the BST property. |
| 4 | 236. Lowest Common Ancestor of a Binary Tree | Medium | Free | Return the node where both sides report a found target. |
| 5 | 1650. Lowest Common Ancestor of a Binary Tree III | Medium | Premium (paid) | With parent pointers this is “intersection of two linked lists”: two pointers that switch heads. |
| 6 | 543. Diameter of Binary Tree | Easy | Free | Post-order heights, track left + right. |
| 7 | 129. Sum Root to Leaf Numbers | Medium | Free | DFS carrying number * 10 + digit. |
| 8 | 124. Binary Tree Maximum Path Sum | Hard | Free | Post-order gains, clamp negatives to zero. |
| 9 | 426. Convert Binary Search Tree to Sorted Doubly Linked List | Medium | Premium (paid) | In-order traversal linking prev and current; join head and tail at the end. |
| 10 | 297. Serialize and Deserialize Binary Tree | Hard | Free | Pre-order with null markers. |
6. Graphs and grids
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 133. Clone Graph | Medium | Free | DFS or BFS with a dict from original node to copy. |
| 2 | 1091. Shortest Path in Binary Matrix | Medium | Free | BFS with 8 directions. |
| 3 | 827. Making A Large Island | Hard | Free | Label islands with ids and sizes, then for each 0 sum the distinct neighboring islands plus 1. |
| 4 | 721. Accounts Merge | Medium | Free | Union-find or DFS over an email graph. |
| 5 | 200. Number of Islands | Medium | Free | Flood fill count. Solution included. |
| 6 | 286. Walls and Gates | Medium | Premium (paid) | Multi-source BFS from all gates at once. |
| 7 | 269. Alien Dictionary | Hard | Premium (paid) | Build edges from adjacent words, then topological sort. |
| 8 | 489. Robot Room Cleaner | Hard | Premium (paid) | Backtracking DFS with relative directions; return to the previous cell by turning around twice. |
7. Heaps and top-K
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 215. Kth Largest Element in an Array | Medium | Free | Size-k min-heap or quickselect. Solution included. |
| 2 | 347. Top K Frequent Elements | Medium | Free | Counter then heap, or bucket sort by frequency. |
| 3 | 973. K Closest Points to Origin | Medium | Free | Size-k max-heap on squared distance. |
| 4 | 23. Merge k Sorted Lists | Hard | Free | Heap of list heads. |
| 5 | 295. Find Median from Data Stream | Hard | Free | Two heaps. |
| 6 | 480. Sliding Window Median | Hard | Free | Two heaps with lazy deletion, or a sorted list with bisect. |
8. Intervals, linked lists and design
| # | Problem | Level | Access | Approach notes |
|---|---|---|---|---|
| 1 | 56. Merge Intervals | Medium | Free | Sort and merge. Solution included. |
| 2 | 986. Interval List Intersections | Medium | Free | Two pointers; overlap is [max starts, min ends]; advance the one that ends first. |
| 3 | 253. Meeting Rooms II | Medium | Premium (paid) | Min-heap of end times. |
| 4 | 1762. Buildings With an Ocean View | Medium | Premium (paid) | Scan from the right keeping the max height seen. |
| 5 | 138. Copy List with Random Pointer | Medium | Free | Interleave copies, set randoms, split; or a dict from old to new. |
| 6 | 708. Insert into a Sorted Circular Linked List | Medium | Premium (paid) | Find the spot where prev <= x <= next, or the max-to-min wrap point. |
| 7 | 146. LRU Cache | Medium | Free | Hash map plus doubly linked list. |
| 8 | 346. Moving Average from Data Stream | Easy | Premium (paid) | Deque with a running sum. |
| 9 | 339. Nested List Weight Sum | Medium | Premium (paid) | DFS carrying depth. |
System design and product architecture
Meta’s full loop guide describes two variants and asks you to confirm which one you will get:
| Variant | Official emphasis | Example prompts from Meta’s guide | Other commonly reported prompts |
|---|---|---|---|
| Systems design | Distributed systems, scalability, performance, efficiency | Design a URL shortener; build a Facebook chat; a worldwide video distribution system | News feed, notifications, a proximity service, a distributed counter for likes, top-K hashtags |
| Product architecture | API design, usability, utility, client-server | Design a service or product API; a chat service or feed API; an email server | Instagram-style photo sharing API, comments and reactions, event invitations |
Meta’s guide lists what you should be able to discuss: testability, usability, extensibility, security, portability, availability, scalability and operations for systems design; storage data models, data ownership, protocols, data formats, client-server design and handling product changes for product architecture. Its four design focus areas are problem navigation, solution design, technical excellence and technical communication.
Free reading that fits Meta’s scale:
- Engineering at Meta blog - real designs from Meta teams.
- TAO: Facebook’s Distributed Data Store for the Social Graph (USENIX ATC 2013) - how the social graph is stored and cached.
- Scaling Memcache at Facebook (NSDI 2013) - caching, invalidation and regions at very large scale.
- The System Design Primer - free general fundamentals.
The behavioral interview
Meta’s guide lists five focus areas:
| Focus area | Typical question themes (paraphrased) |
|---|---|
| Resolving conflict | A disagreement with a peer or manager and how it was resolved |
| Growing continuously | Critical feedback you acted on; how you improve your skills |
| Embracing ambiguity | Making progress with unclear requirements or a sudden pivot |
| Driving results | Delivering against goals despite roadblocks; measurable impact |
| Communicating effectively | Working with cross-functional partners; tailoring communication |
Meta recommends outlining two or three major projects in advance, being honest about projects that did not go well, using STAR, and giving concrete examples instead of theory. For a full story bank method, see tech-interview-handbook-behavioral.
Study plans
4-week plan
| Week | Coding (sections) | Design / behavioral |
|---|---|---|
| 1 | 1, 2, 3 | Write 2-3 major project outlines |
| 2 | 4, 5 | One timed screen simulation: two problems in 35 minutes |
| 3 | 6, 7 | Design: 2 prompts (system or product, whichever you will get) |
| 4 | 8 + redo all misses | Behavioral mock with the five focus areas; full mock loop |
8-week plan
Spend two weeks per row above, add one AI-enabled practice session per week (a multi-file problem with an assistant, timed at 60 minutes), and do at least six timed two-problem sessions.
Expectations by level
Generalized from public reports; your recruiter’s description wins.
| Level | Coding | Design | Behavioral |
|---|---|---|---|
| E3 (entry) | Main signal; two coding rounds | Usually none | Yes, scoped to school, internships and early work |
| E4 | Two coding rounds | Sometimes one design round | Yes |
| E5 (senior) | Two coding rounds (one may be AI-enabled) | One or two design rounds | Strong ownership and cross-team stories |
| E6+ (staff and above) | Fewer coding rounds | Multiple design rounds; system and product depth | Leadership across teams and direction setting |
Speed drills for two problems in 35-40 minutes
- 15-minute rule. Meta’s own guide suggests practicing mediums and hards in under 15 minutes each. Time every practice problem.
- Pattern flash cards. For each problem in the tables, write the one-line approach on a card. Review cards daily until you can name the pattern in 30 seconds.
- No-run coding. Write solutions in a plain text editor without running them, then dry-run on paper. Meta’s interviewers do not compile your code.
- Variant practice. After solving, change one constraint (sorted input, streaming input, O(1) space) and solve again in 5 minutes.
- Paired mocks. One person plays interviewer with two problems back to back; stop at 35 minutes exactly.
Best resources
| Resource | Type | Cost | Best for |
|---|---|---|---|
| Meta technical screen prep | Official page + guide | Free | Screen format, focus areas |
| Meta full loop prep | Official page + guide | Free | Loop rounds, no-DP note, design variants |
| Meta sample interview problems | Official blog | Free | Meta’s own example problems |
| Software engineering interview Q&A: hack the coding interview | Official blog | Free | Advice from Meta engineers |
| Hello Interview: Meta AI-enabled coding | Third-party article | Free | Reported details of the AI round |
| NeetCode roadmap | Problem list + videos | Free (paid tier exists) | Pattern practice (skip DP sections for Meta) |
| LeetCode | Practice platform | Free; Premium is paid | Problems |
| Engineering at Meta | Engineering blog | Free | Real system designs |
| The System Design Primer | GitHub guide | Free | Design fundamentals |
| Excalidraw | Whiteboard tool | Free | Meta’s guide suggests getting familiar with it for design interviews |
| System Design Interview by Alex Xu | Book | Paid | Worked design examples |
Best pick if you only use three: Meta’s two official guides, NeetCode’s roadmap without DP, and Engineering at Meta plus the System Design Primer for design.
Running the solutions
git clone https://github.com/Ralpberry-Labs/meta-interview-questions.git
cd meta-interview-questions
python3 -m unittest discover -v
Python 3 standard library only.
FAQ
Are these actual Meta interview questions? No. They are public LeetCode problems that practice patterns frequently reported in public Meta interview experiences. Meta does not publish its questions and this repo uses no leaked material.
Does Meta ask dynamic programming? Meta’s official full loop guide says it does not ask dynamic programming questions. Focus on other patterns.
How many problems are in a Meta coding interview? Meta’s guides say to expect about two problems in about 35-40 minutes, both in the screen and in full loop coding rounds.
Can I use AI in a Meta interview? Meta’s guides prohibit unauthorized outside assistance, including tools like ChatGPT. The reported AI-enabled coding round is the exception: only the assistant built into the interview environment is allowed.
Which programming language should I use? Meta says to use the language you are most comfortable with and notes scripting languages tend to be easier in interviews. Confirm your choice with the recruiter.
Do I get system design or product architecture? It depends on the role. Meta’s guide tells candidates to ask their recruiter which one to prepare for.
Is the code compiled or run? In standard coding rounds, Meta’s guide says interviewers will not compile your code, so practice writing correct code without running it. The AI-enabled round is reported to run code and tests.
How long until I hear back? Meta’s guide says to follow up with your recruiter if you have not heard within a week of your interviews.
Do I need LeetCode Premium? No. Every section here includes free problems.
Where to go next
- google-interview-questions, amazon-interview-questions, microsoft-interview-questions
- leetcode-master-150 - ordered problem plan with solutions.
- tech-interview-handbook-behavioral - behavioral prep.
Contributing
Issues and pull requests are welcome for broken links, process changes backed by a public source, new practice problems with your own notes, and solution bugs (add a failing test). Please never submit confidential, NDA-covered or leaked questions, or copied paid content.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.