FAANG / MAANG+ Coding Interview Questions

April 6, 2026 · View on GitHub

A curated collection of coding, system design, and ML interview questions from top tech companies.
Continuously updated with 2025-2026 interview questions.

GitHub stars GitHub forks License Last Commit PRs Welcome

Essential Resources

Problem Collections

Company-Specific Questions

AI & Machine Learning

Programming Resources

Table of Contents

Company Questions

SNo.Company
1.FAANG Must Do Problems
2.Google
3.Meta (Facebook)
4.Amazon
5.Apple
6.Netflix
7.Microsoft
8.LinkedIn
9.OpenAI
10.Anthropic
11.Palantir
12.Databricks
13.Flipkart

Quick Start Guide

Beginner Track (0-3 months)

  • Start with Blind 75 for fundamentals
  • Practice 2-3 problems daily focusing on patterns
  • Review Python Resources for clean code

Intermediate Track (1-6 months)

Advanced Track (Targeting specific roles)

FAANG Must Do Problems

View Problems
No.ProblemDifficultyTime ComplexitySpace Complexity
1Two SumEasyO(n)O(n)
2Longest Substring Without Repeating CharactersMediumO(n)O(min(m,n))
3Longest Palindromic SubstringMediumO(n²)O(1)
4Container With Most WaterMediumO(n)O(1)
53SumMediumO(n²)O(1)
6Remove Nth Node From End of ListMediumO(n)O(1)
7Valid ParenthesesEasyO(n)O(n)
8Merge Two Sorted ListsEasyO(n+m)O(1)
9Merge k Sorted ListsHardO(n log k)O(1)
10Search in Rotated Sorted ArrayMediumO(log n)O(1)
11Combination SumMediumO(2ⁿ)O(n)
12Rotate ImageMediumO(n²)O(1)
13Group AnagramsMediumO(n k log k)O(n k)
14Maximum SubarrayEasyO(n)O(1)
15Spiral MatrixMediumO(m×n)O(1)
16Jump GameMediumO(n)O(1)
17Merge IntervalsMediumO(n log n)O(n)
18Insert IntervalMediumO(n)O(n)
19Unique PathsMediumO(m×n)O(m×n)
20Climbing StairsEasyO(n)O(1)
21Set Matrix ZeroesMediumO(m×n)O(1)
22Minimum Window SubstringHardO(n)O(k)
23Word SearchMediumO(m×n×4ᵏ)O(k)
24Decode WaysMediumO(n)O(n)
25Validate Binary Search TreeMediumO(n)O(h)
26Same TreeEasyO(n)O(h)
27Binary Tree Level Order TraversalMediumO(n)O(n)
28Maximum Depth of Binary TreeEasyO(n)O(h)
29Construct Binary Tree from Preorder and Inorder TraversalMediumO(n)O(n)
30Best Time to Buy and Sell StockEasyO(n)O(1)

Google

View 25 Problems (2025-2026 Most Frequent)
No.ProblemDifficultyCategory
1Two SumEasyHash Map / Arrays
2Number of IslandsMediumGraph / DFS
3Merge IntervalsMediumIntervals / Sorting
4LRU CacheMediumDesign / Linked List
5Validate Binary Search TreeMediumTrees / BST
6Course Schedule IIMediumGraph / Topological Sort
7Longest Substring Without Repeating CharactersMediumSliding Window
8Trapping Rain WaterHardTwo Pointers / Stack
9Serialize and Deserialize Binary TreeHardTrees / Design
10Kth Largest Element in an ArrayMediumHeap / Quickselect
11Median of Two Sorted ArraysHardBinary Search
12Group AnagramsMediumHashing / Strings
13Word LadderHardBFS / Graphs
14Merge K Sorted ListsHardHeap / Linked List
15Container With Most WaterMediumTwo Pointers
16Top K Frequent ElementsMediumHeap / Hashing
17Coin ChangeMediumDynamic Programming
18Search in Rotated Sorted ArrayMediumBinary Search
19Product of Array Except SelfMediumArrays / Prefix
20Binary Tree Level Order TraversalMediumTrees / BFS
21Combination SumMediumBacktracking
22Edit DistanceHardDynamic Programming
23Minimum Window SubstringHardSliding Window
24Implement Trie (Prefix Tree)MediumTrie
25Accounts MergeMediumUnion-Find

Meta (Facebook)

View 25 Problems (2025-2026 Most Frequent)
No.ProblemDifficultyCategory
1Minimum Remove to Make Valid ParenthesesMediumStack / String
2Binary Tree Vertical Order TraversalMediumTree / BFS
3Basic Calculator IIMediumStack / Expression Parsing
4Valid Palindrome IIEasyTwo Pointers / String
5Kth Largest Element in an ArrayMediumHeap / Divide & Conquer
6Lowest Common Ancestor of a Binary TreeMediumTree / DFS
7Random Pick with WeightMediumBinary Search / Prefix Sum
8Subarray Sum Equals KMediumArray / HashMap / Prefix Sum
9Valid PalindromeEasyTwo Pointers / String
10Two SumEasyArray / HashMap
11Binary Tree Right Side ViewMediumTree / BFS
12Top K Frequent ElementsMediumHeap / HashMap
13Merge IntervalsMediumArray / Sorting
14LRU CacheMediumDesign / HashMap / Linked List
15Clone GraphMediumGraph / BFS / DFS
16Merge k Sorted ListsHardLinked List / Heap
17Maximum SwapMediumMath / Greedy
18Number of IslandsMediumGraph / DFS / BFS
19Accounts MergeMediumUnion-Find / Graph
20Diameter of Binary TreeEasyTree / DFS
21Product of Array Except SelfMediumArray / Prefix Sum
22Word BreakMediumDynamic Programming
23Copy List with Random PointerMediumLinked List / Hash Table
24Making a Large IslandHardGraph / DFS / Union-Find
25Expression Add OperatorsHardBacktracking / Math

Amazon

View 25 Problems (2025-2026 Most Frequent)
No.ProblemDifficultyCategory
1Two SumEasyArray / Hash Table
2Number of IslandsMediumGraph / DFS / BFS
3LRU CacheMediumDesign / Hash + Linked List
4Merge IntervalsMediumArray / Sorting
5Group AnagramsMediumHashing / Strings
6Top K Frequent ElementsMediumHeap / Hashing
7Task SchedulerMediumHeap / Greedy
8Trapping Rain WaterHardTwo Pointers / Stack
9Product of Array Except SelfMediumArray / Prefix Sum
10Longest Substring Without Repeating CharactersMediumSliding Window
11Minimum Window SubstringHardSliding Window
12Kth Largest Element in an ArrayMediumHeap / Quickselect
13Merge k Sorted ListsHardHeap / Linked List
14Course ScheduleMediumGraph / Topological Sort
15Rotting OrangesMediumGraph / BFS
16Serialize and Deserialize Binary TreeHardTrees / Design
17Lowest Common Ancestor of a Binary TreeMediumTrees / DFS
18Coin ChangeMediumDynamic Programming
19Best Time to Buy and Sell StockEasyArray / DP
20Sliding Window MaximumHardDeque / Sliding Window
21Reorganize StringMediumHeap / Greedy
22Insert Delete GetRandom O(1)MediumDesign / Hash Table
23Decode StringMediumStack / Strings
24Koko Eating BananasMediumBinary Search
25Largest Rectangle in HistogramHardMonotonic Stack

Apple

View 20 Problems (2025-2026 Most Frequent)
No.ProblemDifficultyCategory
1Two SumEasyArray / Hash Table
2LRU CacheMediumDesign / Hash + Linked List
3Number of IslandsMediumGraph / DFS / BFS
4Reverse Linked ListEasyLinked List
5Group AnagramsMediumString / Hash Table
6Valid ParenthesesEasyStack / String
7Merge IntervalsMediumArray / Sorting
8Word BreakMediumDynamic Programming
9Product of Array Except SelfMediumArray / Prefix Sum
10Best Time to Buy and Sell StockEasyArray / DP
113SumMediumArray / Two Pointers
12Trapping Rain WaterHardTwo Pointers / Stack
13Top K Frequent ElementsMediumHeap / Hash Table
14Course ScheduleMediumGraph / Topological Sort
15Lowest Common Ancestor of a Binary TreeMediumTree / DFS
16Serialize and Deserialize Binary TreeHardTree / Design
17Longest Substring Without Repeating CharactersMediumSliding Window
18Median of Two Sorted ArraysHardBinary Search
19Maximum Profit in Job SchedulingHardBinary Search / DP
20Bus RoutesHardGraph / BFS

Netflix

View 15 Problems (2025-2026 Most Frequent)
No.ProblemDifficultyCategory
1LRU CacheMediumDesign / Hash + Linked List
2Merge IntervalsMediumArray / Sorting
3Course Schedule IIMediumGraph / Topological Sort
4Top K Frequent ElementsMediumHeap / Hash Table
5Network Delay TimeMediumGraph / Dijkstra
6Daily TemperaturesMediumMonotonic Stack
7Number of IslandsMediumGraph / DFS / BFS
8Serialize and Deserialize Binary TreeHardTree / Design
9Find Median from Data StreamHardHeap / Design
10Trapping Rain WaterHardTwo Pointers / Stack
11Edit DistanceMediumDynamic Programming
12Minimum Window SubstringHardSliding Window
13Meeting Rooms IIMediumIntervals / Heap
14Koko Eating BananasMediumBinary Search
15Implement Trie (Prefix Tree)MediumTrie / Design

Microsoft

View 20 Problems (2025-2026 Most Frequent)
No.ProblemDifficultyCategory
1Two SumEasyArray / Hash Table
2LRU CacheMediumDesign / Hash + Linked List
3Longest Substring Without Repeating CharactersMediumSliding Window
4Add Two NumbersMediumLinked List / Math
5Number of IslandsMediumGraph / DFS / BFS
6Maximum SubarrayMediumArray / DP
7Merge Two Sorted ListsEasyLinked List
8Copy List with Random PointerMediumLinked List / Hash Table
9Rotate ImageMediumArray / Matrix
10Set Matrix ZeroesMediumArray / Matrix
11Clone GraphMediumGraph / DFS / BFS
12Binary Tree Level Order TraversalMediumTree / BFS
13Median of Two Sorted ArraysHardBinary Search
14Regular Expression MatchingHardDP / Recursion
15Reverse Nodes in k-GroupHardLinked List
16Asteroid CollisionMediumStack
17Cheapest Flights Within K StopsMediumGraph / DP / BFS
18Construct Binary Tree from Preorder and Inorder TraversalMediumTree / Divide and Conquer
19Largest Rectangle in HistogramHardMonotonic Stack
20Sudoku SolverHardBacktracking / Matrix

LinkedIn

View 20 Problems (2025-2026 Most Frequent)
No.ProblemDifficultyCategory
1Nested List Weight SumMediumDFS / Recursion
2Nested List Weight Sum IIMediumStack / DFS
3Can Place FlowersEasyArray / Greedy
4Find Leaves of Binary TreeMediumTree / DFS
5Max StackHardStack / Linked List / Design
6All O'one Data StructureHardHash Table / Linked List / Design
7Shortest Word Distance IIMediumHash Table / Design
8Find the CelebrityMediumTwo Pointers / Graph
9Maximum SubarrayMediumArray / DP
10Maximum Product SubarrayMediumArray / DP
11Merge IntervalsMediumArray / Sorting
12Edit DistanceMediumDynamic Programming
13Design Add and Search Words Data StructureMediumTrie / Design
14Word LadderHardBFS / Graphs
15Insert Delete GetRandom O(1)MediumDesign / Hash Table
16Valid ParenthesesEasyStack / String
17Isomorphic StringsEasyString / Hash Table
18Decode WaysMediumDynamic Programming
19House Robber IIMediumDynamic Programming
20Combination Sum IIMediumBacktracking

OpenAI

View 20 Problems (2025-2026 -- Production-Oriented)

OpenAI interviews focus on practical engineering over LeetCode puzzles. Problems are drawn from a bank of ~8 core challenges with progressive difficulty layers. Python is strongly recommended.

Core Custom Problems (Most Frequently Reported)

No.ProblemDifficultyCategoryContext
1KV Store Serialize/DeserializeHardDesign / StringsMulti-part: basic serialization, file persistence, multithreading, versioned store
2CD Directory NavigationHardString / Path ResolutionImplement cd() with relative/absolute paths, .., ., ~, symlink cycle detection
3Excel/Spreadsheet EngineHardGraph / DesigngetCell() O(1), setCell() with formula dependencies, circular dependency detection
4In-Memory DatabaseHardDatabase Designselect() with WHERE, AND, ORDER BY, comparison operators -- no SQL parsing
5Resumable IteratorHardIterator / StateStateful iterator with getState()/setState(), nested structures, async variants
6Async Node CountingHardDistributed / TreesCount tree nodes using only async parent-child messaging

LeetCode-Equivalent Problems

No.ProblemDifficultyCategoryContext
7LRU CacheMediumDesignInference KV cache -- most frequently reported
8Time Based Key-Value StoreMediumDesign / Binary SearchModel checkpoint storage
9Snapshot ArrayMediumDesign / Binary SearchModel state checkpointing
10Alien DictionaryHardGraph / Topological SortTokenizer ordering
11Web Crawler MultithreadedMediumConcurrency / BFSTraining data crawling
12LFU CacheHardDesignAdvanced caching
13Decode StringMediumStack / StringsString processing
14Word LadderHardBFS / GraphsNLP transformations
15Design Memory AllocatorMediumDesign / SimulationGPU memory management
16Game of LifeMediumSimulation / MatrixExtended to infinite board
17Meeting Rooms IIMediumIntervals / HeapInterval scheduling
18Serialize and Deserialize Binary TreeHardTrees / DesignData persistence
19Top K Frequent ElementsMediumHeap / HashML preprocessing
20Course Schedule IIMediumGraph / Topological SortDependency resolution

Anthropic

View Interview Guide (2025-2026 -- Custom Problems + Concurrency Round)

Anthropic uses CodeSignal OA (60-90 min) followed by a 4-6 hour onsite with 4-6 rounds. Python expected. AI tools strictly prohibited. Problems are drawn from a bank of ~6 core custom challenges with progressive difficulty layers.

Core Custom Coding Problems (Most Frequently Reported)

No.ProblemDifficultyCategoryContext
1In-Memory DatabaseHardDesign4 levels: SET/GET/DELETE -> filtered scans -> TTL -> backup/restore
2Web CrawlerHardBFS / ConcurrencyBFS crawl -> multithreaded/async optimization
3LRU Cache (Bugfix + Extend)HardDesign / DebuggingFix bugs, add persistence, handle *args/**kwargs
4Stack Trace / ProfilerHardParsing / DesignConvert sampling data to chronological events
5Tokenization EngineHardString / NLPCode review, tokenize/detokenize with vocabulary coverage
6Distributed Mode/MedianHardDistributed SystemsCompute across 10 nodes with bandwidth constraints

LeetCode Practice Problems (Mapped to Anthropic's Focus Areas)

No.ProblemDifficultyCategory
1LRU CacheMediumDesign
2Web Crawler MultithreadedMediumConcurrency / BFS
3Implement Trie (Prefix Tree)MediumTrie / NLP
4Word BreakMediumDP / Strings
5Design Hit CounterMediumDesign
6Time Based Key-Value StoreMediumDesign / Binary Search
7Serialize and Deserialize Binary TreeHardTrees / Design
8Merge k Sorted ListsHardHeap / Distributed
9Course Schedule IIMediumGraph / Topological Sort
10Number of IslandsMediumGraph / DFS

Key Focus Areas: AI safety/alignment (Constitutional AI, RLHF, red-teaming), systems engineering (distributed training, inference optimization), concurrency/parallel programming, Transformer architecture depth

Palantir

View 20 Problems + Unique Interview Format (2025-2026)

Palantir's onsite gives you 3 of 4 round types: Decomposition, System Design, Re-engineering (Debugging), and Coding. Each round includes 20 min of behavioral questions.

Most Frequently Asked Coding Problems

No.ProblemDifficultyCategory
1Merge IntervalsMediumIntervals / Sorting
2Number of IslandsMediumGraph / DFS / BFS
3LRU CacheMediumDesign / Hash Map
4Course ScheduleMediumGraph / Topological Sort
5Course Schedule IIMediumGraph / Topological Sort
6All Ancestors of a Node in DAGMediumGraph / DFS
7Merge k Sorted ListsHardHeap / Linked List
8Trapping Rain WaterHardTwo Pointers / Stack
9Regular Expression MatchingHardDP / String
10Subdomain Visit CountMediumHash Map / String
11Find the CelebrityMediumArray / Logic
12UTF-8 ValidationMediumBit Manipulation
13Container With Most WaterMediumTwo Pointers
14Max Area of IslandMediumGraph / DFS
15Rotate ImageMediumArray / Matrix
16Integer to English WordsHardString / Math
17Shortest Path to Get All KeysHardBFS / Bitmask
18Construct Quad TreeMediumTree / Recursion
19Inorder Successor in BSTMediumTree / BST
20Contains Duplicate IIIHardBST / Bucket Sort

Unique Interview Rounds

  • Decomposition: Break down open-ended real-world problems (e.g., "Design tech to help elderly cook safely"). Non-coding.
  • Re-engineering (Debugging): Debug 500-1000 lines of buggy code with red herrings
  • System Design: Focus on data integration, ontology design, access control (ABAC)
  • FDSE vs SWE: Forward-deployed roles emphasize client-facing scenarios; backend roles emphasize scale

Databricks

View 25 Problems (2025-2026 Most Frequent -- includes dedicated concurrency round)

Databricks has a unique dedicated concurrency/multithreading round (1 hour). OA is 4 problems in 70 minutes on CodeSignal.

No.ProblemDifficultyCategory
1Capacity To Ship Packages Within D DaysMediumBinary Search
2Trapping Rain WaterHardTwo Pointers / Stack
3Max StackHardStack / Linked List / Design
4All O'one Data StructureHardHash Table / Design
5Word BreakMediumDP / Trie
6Rotting OrangesMediumBFS / Matrix
7All Nodes Distance K in Binary TreeMediumTree / BFS / DFS
8Decode StringMediumStack / Recursion
9K Closest Points to OriginMediumHeap / Math
10Asteroid CollisionMediumStack
11Design Hit CounterMediumDesign / Queue
12Time Based Key-Value StoreMediumDesign / Binary Search
13Snapshot ArrayMediumDesign / Binary Search
14Find All Anagrams in a StringMediumSliding Window
15Cheapest Flights Within K StopsMediumGraph / BFS / DP
16Binary Search Tree IteratorMediumStack / Tree / Design
17House RobberMediumDynamic Programming
18Interval List IntersectionsMediumTwo Pointers
19Print in OrderEasyConcurrency
20Print FooBar AlternatelyMediumConcurrency
21Building H2OMediumConcurrency
22The Dining PhilosophersMediumConcurrency
23Course Schedule IIMediumGraph / Topological Sort
24Alien DictionaryHardGraph / Topological Sort
25Median of Two Sorted ArraysHardBinary Search

Flipkart

View Problems
No.ProblemDifficultyCategory
1Add Two NumbersMediumLinked List / Math

About This Repository

This repository covers 500+ coding problems across 13+ companies, organized by company and topic. Includes NeetCode 150, Blind 75, system design guides, and ML/AI interview resources.

Complete System Design Interview Guide - 25 system design problems with complexity ratings and company tags.

Contributing

Contributions are welcome. Please feel free to submit a pull request with new questions, corrections, or additional company coverage.

Maintainer

@ombharatiya -- Twitter | LinkedIn

License

GPL-3.0 -- see LICENSE for details.