0 day streak

KLA coding interview questions

Product India 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
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Reaching PointsMath / Number Theory Hard Arrays & Hashing Nvidia, Snap, Wayfair +7 Solve
LFU CacheLinked Lists Hard Design Data Structures Amazon, Apple, Netflix +37 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Find Median from Data StreamAdvanced Hard Heaps Google, Amazon, Apple +47 Solve
Next Greater Element IIMonotonic Stack Medium Monotonic Stack ServiceNow, Morgan Stanley, Flipkart +5 Solve
Critical Connections in a NetworkBFS / DFS Basics Hard Graphs ServiceNow, Dell Technologies, Akuna Capital +2 Solve
Merge k Sorted ArraysMerge K Sorted Medium Heaps ServiceNow, Cadence Design Systems, Teradata +2 Solve
Largest Rectangle in HistogramMonotonic Stack Hard Monotonic Stack Microsoft, Meta, DoorDash +23 Solve
Top View of Binary TreeViews Medium Trees & BST MakeMyTrip, Delhivery Solve
Array LeadersRight to Left Traversal Easy Arrays & Hashing Juniper Networks, Cadence Design Systems, Accenture Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Snap +38 Solve
Minimum Knight MovesBFS for shortest path Medium Graphs Microsoft, Uber, Databricks +9 Solve
Max Points on a LineHashing Hard Arrays & Hashing Uber, LinkedIn, X (Twitter) +4 Solve
Also reported, being added to AlgoRung (4)

Maximum Product of First and Last Elements of a Subsequence · Maximum Fruits Harvested After at Most K Steps · Brick Wall · Longest Repeating and Non-Overlapping Substring

Questions people ask

What coding questions does KLA ask most?

LRU Cache, Reaching Points, LFU Cache, Two Sum, Find Median from Data Stream, Next Greater Element II, Critical Connections in a Network, Merge k Sorted Arrays.

Which topics come up in KLA coding rounds?

design data structure, heaps, stack, graphs, dynamic programming, sliding window.

How hard are KLA coding questions?

Of the reported questions, 2 are easy, 6 medium and 6 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.