0 day streak

Lenskart coding interview questions

ProductE-commerce and consumer India

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
House RobberAlternate Selection / Pick / Not pick Medium Dynamic Programming Google, Microsoft, Airbnb +43 Solve
Pairs of Songs With Total Durations Divisible by 60Two Sum Medium Arrays & Hashing Dropbox, Fidelity Investments, FactSet +2 Solve
Design HashSetPre-processing + tradeoffs Easy Design Data Structures Wix, Flipkart Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +88 Solve
Valid NumberSimulation Hard Arrays & Hashing Nutanix, eBay, Epic Games +1 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Amazon, Microsoft +59 Solve
Plus OneRight to Left Traversal Easy Arrays & Hashing Spotify, Oracle, Intuit +5 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +81 Solve
Sliding Window MaximumMonotonic Stack Hard Monotonic Stack Google, Amazon, Microsoft +51 Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Snap +38 Solve
Diameter of Binary TreePostorder + Multiple Return Values Easy Trees & BST Google, Meta, DoorDash +22 Solve
Binary Tree Zigzag Level Order TraversalTraversals Medium Trees & BST Amazon, LinkedIn, Nutanix +23 Solve
Linked List CycleSlow Fast Pointers Easy Linked List Microsoft, Apple, Nvidia +67 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Amazon, Microsoft, Apple +79 Solve
Word Break IIChoice per Position Hard Recursion & Backtracking Bloomberg, Snap, Booking.com +12 Solve
Subsets (2 choices per element)Pick / Not-Pick Medium Recursion & Backtracking Bloomberg, Reddit, Agoda +9 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +35 Solve
Row with max 1s2D Binary Search + Step Search Medium Binary Search ShareChat Solve
Single Element in a Sorted ArrayUnique 1-D Binary Search Medium Binary Search Snowflake, Coupang, Moloco +14 Solve
PermutationsPermutations Medium Recursion & Backtracking Google, Apple, LinkedIn +23 Solve
Pascal's Triangle II1D DP Easy Dynamic Programming Qualtrics, Ola, Airtel Solve
Search Insert PositionBisect Easy Binary Search Grammarly, SpaceX, TCS +2 Solve
Snakes and LaddersBFS for shortest path Medium Graphs Tesla, Anduril, Salesforce +4 Solve
Partition Equal Subset SumKnapsack Medium Dynamic Programming Google, eBay, Texas Instruments +6 Solve
House Robber IIAlternate Selection / Pick / Not pick Medium Dynamic Programming Databricks, Datadog, Activision Blizzard +9 Solve
Find Median from Data StreamAdvanced Hard Heaps Google, Amazon, Apple +47 Solve
Rat in a Maze2D Matrix Backtracking Medium Recursion & Backtracking Citi, Thoughtworks, MAQ Software +1 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Bottom View of Binary TreeViews Medium Trees & BST Oracle, Jio Platforms, Cars24 +3 Solve
Word Search2D Matrix Backtracking Medium Recursion & Backtracking Google, Microsoft, Meta +36 Solve
Also reported, being added to AlgoRung (4)

Vertical Sum in a Binary Tree · Check for Identical BSTs Without Building the Trees · Pair With Given Sum in a Sorted and Rotated Array · Job Sequencing Problem

Questions people ask

What coding questions does Lenskart ask most?

House Robber, Pairs of Songs With Total Durations Divisible by 60, Design HashSet, Trapping Rain Water, Valid Number, Container With Most Water, Plus One, Reverse Linked List.

Which topics come up in Lenskart coding rounds?

arrays, hashing, trees, linked list, strings, two pointers.

How hard are Lenskart coding questions?

Of the reported questions, 8 are easy, 18 medium and 5 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.