0 day streak

Klarna coding interview questions

FintechProduct Global

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
IP to CIDRTricks to remember Medium Bit Manipulation Airbnb, Databricks, OpenAI +3 Solve
Walls and GatesMulti source BFS Medium Graphs LinkedIn, Spotify, DoorDash +3 Solve
Maximum Profit in Job Scheduling1D DP Hard Dynamic Programming Amazon, Airbnb, Snowflake +15 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Vertical Order Traversal of a Binary TreeViews Hard Trees & BST Meta, Apple, Uber +15 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Amazon, Meta, Apple +51 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Amazon, Microsoft +59 Solve
Same TreeRecursion Easy Trees & BST Deutsche Bank, SAP, Cadence Design Systems +4 Solve
Insert Delete GetRandom O(1)Hash Map + Array Medium Design Data Structures Google, Amazon, Apple +50 Solve
Binary Tree Zigzag Level Order TraversalTraversals Medium Trees & BST Amazon, LinkedIn, Nutanix +23 Solve
Accounts MergeConnected Components Medium Graphs Stripe, Pinterest, Palantir +12 Solve
Moving Average from Data StreamQueue / Circular Buffer Easy Design Data Structures Meta, Spotify, Coinbase +9 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
N-Queens2D Matrix Hard Recursion & Backtracking Netflix, TikTok (ByteDance), Elastic +17 Solve
Maximum Sum Circular SubarrayKadane's Algorithm Medium Arrays & Hashing Activision Blizzard, Two Sigma, Charles Schwab +7 Solve
Two City SchedulingGreedy Medium Arrays & Hashing Bloomberg, Two Sigma, Plaid +4 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Logger Rate LimiterHash Map + Array Easy Design Data Structures Google, Netflix, Tesla +17 Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Amazon, Microsoft +41 Solve
Minimum Add to Make Parentheses ValidStack Basics Medium Stack Meta, Siemens Solve
Zero Array Transformation IIIAdvanced Medium Heaps Elastic, Red Hat, Plaid +1 Solve
Add StringsRight to Left Traversal Easy Arrays & Hashing Microsoft, Airbnb, Wayfair +7 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +88 Solve
Check if One String Swap Can Make Strings EqualString Basics Easy Arrays & Hashing DoorDash, Activision Blizzard, Plaid +3 Solve
K Closest Points to OriginTop K / Kth Largest / Smallest Medium Heaps Google, Meta, Netflix +12 Solve
Maximum SwapRight to Left Traversal Medium Arrays & Hashing Meta, TikTok (ByteDance), Elastic +2 Solve
Binary Tree Maximum Path SumPostorder + Multiple Return Values Hard Trees & BST Google, Amazon, Meta +29 Solve
Simplify PathStack Basics Medium Stack Meta, Snowflake, Grab +11 Solve
Binary Search Tree IteratorBST Basics Medium Trees & BST Meta, Redfin, Qualtrics +5 Solve
Palindrome NumberMath / Number Theory Easy Arrays & Hashing Bloomberg, Cloudflare, Morgan Stanley +27 Solve
Find First and Last Position of Element in Sorted ArrayBisect Medium Binary Search Meta, LinkedIn, Nvidia +29 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Amazon, Microsoft +55 Solve
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Microsoft +53 Solve
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitSliding Window · Variable Medium Arrays & Hashing Uber, MongoDB, Datadog +6 Solve
Kth Smallest Element in a Sorted MatrixBinary Search on Answer Space Medium Binary Search X (Twitter), OpenAI, Chewy +4 Solve
House Robber IIAlternate Selection / Pick / Not pick Medium Dynamic Programming Databricks, Datadog, Activision Blizzard +9 Solve
Remove All Occurrences of a SubstringStack Basics Medium Stack X (Twitter), Arista Networks, Charles Schwab +3 Solve
Remove ElementTwo Pointer Easy Arrays & Hashing Zoom, Yandex, HP Inc. +2 Solve
All Nodes Distance K in Binary TreeChild + Ancestor Handling Medium Trees & BST Amazon, Meta, Apple +14 Solve
Binary Tree Right Side ViewViews Medium Trees & BST Google, Meta, TikTok (ByteDance) +16 Solve
Also reported, being added to AlgoRung (3)

Number of Ships in a Rectangle · Maximum Value at a Given Index in a Bounded Array · Rank Transform of a Matrix

Questions people ask

What coding questions does Klarna ask most?

IP to CIDR, Walls and Gates, Maximum Profit in Job Scheduling, Valid Palindrome, Vertical Order Traversal of a Binary Tree, Merge k Sorted Lists, Kth Largest Element in an Array, Container With Most Water.

Which topics come up in Klarna coding rounds?

arrays, trees, heaps, two pointers, binary search, design data structure.

How hard are Klarna coding questions?

Of the reported questions, 10 are easy, 25 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.