0 day streak

Siemens coding interview questions

Service and ITProduct 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
Longest Valid ParenthesesStrings Hard Dynamic Programming Amazon, Microsoft, Booking.com +15 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +82 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
The Skyline ProblemAdvanced Hard Heaps Google, Microsoft, X (Twitter) +3 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Binary Tree Level Order TraversalTraversals Medium Trees & BST Microsoft, Apple, Netflix +24 Solve
Angle Between Hands of a ClockMath / Number Theory Medium Arrays & Hashing Amazon, Scale AI, Aurora Innovation +5 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Amazon, Meta, Apple +51 Solve
Merge Sorted ArrayTwo Pointer Easy Arrays & Hashing Meta, Apple, Nvidia +40 Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Snap +38 Solve
Remove Duplicates from Sorted ArrayTwo Pointer Easy Arrays & Hashing Microsoft, Bloomberg, Cisco +18 Solve
Minimum Add to Make Parentheses ValidStack Basics Medium Stack Meta, Klarna Solve
Maximum Product SubarrayKadane's Algorithm Medium Arrays & Hashing LinkedIn, Wayfair, Zynga +16 Solve
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Microsoft +53 Solve
Rotate ArrayDouble Reversal Trick Medium Arrays & Hashing Apple, Bloomberg, Nutanix +30 Solve
Clone GraphBFS / DFS Basics Medium Graphs Google, Microsoft, Meta +11 Solve
Reverse StringTwo Pointer Easy Arrays & Hashing Nvidia, Snowflake, Electronic Arts +37 Solve
Zigzag ConversionSimulation Medium Arrays & Hashing ServiceNow, PayPal, Red Hat +3 Solve
Find Peak ElementUnique 1-D Binary Search Medium Binary Search Meta, Netflix, Uber +26 Solve
Valid AnagramHashing Easy Arrays & Hashing Netflix, Databricks, Bloomberg +42 Solve
Maximum Product of Three NumbersGreedy Easy Arrays & Hashing Redfin, Roku, Salesforce +3 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
Median of Two Sorted ArraysBinary Search on Partition Hard Binary Search Google, Amazon, Microsoft +49 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +39 Solve
Search a 2D Matrix2D Binary Search + Step Search Medium Binary Search Microsoft, Nutanix, Goldman Sachs +9 Solve
Diameter of Binary TreePostorder + Multiple Return Values Easy Trees & BST Google, Meta, DoorDash +22 Solve
Maximum Depth of Binary TreeRecursion Easy Trees & BST LinkedIn, Spotify, Tesla +19 Solve
Longest Common SubsequenceStrings Medium Dynamic Programming Google, Amazon, Apple +20 Solve
Delete Node in a Linked ListMiscellaneous Medium Linked List ServiceNow, JPMorgan Chase, PayPal +11 Solve
Move ZeroesTwo Pointer Easy Arrays & Hashing Amazon, Microsoft, Meta +42 Solve
Binary SearchBasics Easy Binary Search Zscaler, Rakuten, Nike +22 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Also reported, being added to AlgoRung (7)

Peaks in Array · Minimized Maximum of Products Distributed to Any Store · Nth Highest Salary · Set Mismatch · Single Number III · Strong Password Checker · Seat Reservation Manager

Questions people ask

What coding questions does Siemens ask most?

Longest Valid Parentheses, Number of Islands, Merge Intervals, Valid Parentheses, Group Anagrams, LRU Cache, The Skyline Problem, Best Time to Buy and Sell Stock.

Which topics come up in Siemens coding rounds?

arrays, strings, trees, stack, intervals, hash maps.

How hard are Siemens coding questions?

Of the reported questions, 12 are easy, 20 medium and 4 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.