0 day streak

Lyft coding interview questions

Product Global Machine coding / LLD

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Minimum Window SubstringSliding Window · Hash Map Hard Arrays & Hashing Google, Amazon, Microsoft +37 Solve
Time Based Key-Value StoreBasics Medium Binary Search Apple, Netflix, Uber +25 Solve
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +35 Solve
Rotting OrangesMulti source BFS Medium Graphs Google, Amazon, Microsoft +48 Solve
Construct Binary Search Tree from Preorder TraversalTree Serialization / Deserialization Medium Trees & BST Cars24 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Decode Ways1D DP Medium Dynamic Programming Google, Meta, Tesla +21 Solve
Min StackStack Medium Design Data Structures Microsoft, Apple, Snowflake +33 Solve
Asteroid CollisionStack Basics Medium Stack Amazon, Microsoft, Nvidia +33 Solve
Convert Sorted List to Binary Search TreeTree to Lists and vice-versa Medium Trees & BST Apple, X (Twitter), Salesforce +2 Solve
Check Completeness of a Binary TreeTraversals Medium Trees & BST Snap, Epic Games, Activision Blizzard +1 Solve
Smallest Range Covering Elements from K ListsMerge K Sorted Hard Heaps Snap, Arcesium, Workday +2 Solve
Car PoolingLine Sweep Medium Intervals Amazon, Goldman Sachs, Flipkart +2 Solve
Sliding Window MedianAdvanced Hard Heaps Microsoft, Meta, Spotify +5 Solve
Max StackStack Hard Design Data Structures LinkedIn, Spotify, Nutanix +8 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +34 Solve
Word Ladder IIBFS for shortest path Hard Graphs Microsoft, Nutanix, Tesla +8 Solve
Product of Array Except SelfRight to Left Traversal Medium Arrays & Hashing Amazon, Microsoft, Meta +37 Solve
Water and Jug ProblemMath / Number Theory Medium Arrays & Hashing Snap, BNY, PhonePe +3 Solve
Sort ListMiscellaneous Medium Linked List Amazon, Microsoft, Deloitte +5 Solve
Longest Consecutive SequenceHash Set Lookup Medium Arrays & Hashing Google, Amazon, Microsoft +34 Solve
Implement Trie (Prefix Tree)Basics Medium Tries Google, Microsoft, Meta +25 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Letter Combinations of a Phone NumberChoice per Position Medium Recursion & Backtracking Amazon, Microsoft, Meta +25 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +39 Solve
Design Search Autocomplete SystemBasics Hard Tries Google, Netflix, Spotify +5 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Binary Tree to DLLTree to Lists and vice-versa Hard Trees & BST Meta, Apple, Adyen +1 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +88 Solve
Regular Expression MatchingStrings Hard Dynamic Programming Microsoft, Airbnb, Snowflake +17 Solve
Permutation in StringSliding Window · Fixed Medium Arrays & Hashing Databricks, Zynga, Yandex +10 Solve
Text JustificationSimulation Hard Arrays & Hashing Google, Microsoft, LinkedIn +28 Solve
Flatten 2D VectorPre-processing + tradeoffs Medium Design Data Structures Airbnb, X (Twitter) Solve
Flatten Nested List IteratorStack Medium Design Data Structures LinkedIn, Airbnb, Tesla +7 Solve
Maximum Candies You Can Get from BoxesBFS / DFS Basics Hard Graphs Airbnb Solve
Rotate ImageIn-place Transformations Medium Arrays & Hashing Amazon, Apple, Nvidia +38 Solve
Merge Sorted ArrayTwo Pointer Easy Arrays & Hashing Meta, Apple, Nvidia +40 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Intersection of Two ArraysTwo Pointer Easy Arrays & Hashing Meta, MongoDB, Indeed +13 Solve
Also reported, being added to AlgoRung (8)

Read N Characters Given read4 II - Call Multiple Times · Range Sum Query 2D - Immutable · Coordinate With Maximum Network Quality · Detonate the Maximum Bombs · Missing Element in Sorted Array · Read N Characters Given Read4 · Find Duplicate Subtrees · Largest BST Subtree

Questions people ask

What coding questions does Lyft ask most?

Minimum Window Substring, Time Based Key-Value Store, Validate Binary Search Tree, Rotting Oranges, Construct Binary Search Tree from Preorder Traversal, Meeting Rooms II, Decode Ways, Min Stack.

Which topics come up in Lyft coding rounds?

graphs, sliding window, intervals, heaps, binary search, trees.

How hard are Lyft coding questions?

Of the reported questions, 3 are easy, 25 medium and 13 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.