Senior Software Engineer / SDE-3 Interview Questions & Answers
40 questions for Senior Software Engineer / SDE-3 interviews — 1 easy, 17 medium, 22 hard.
About the Senior Software Engineer / SDE-3 role
Senior engineers lead the design of large components, set technical direction and solve the hardest performance and scalability problems. DSA interviews at this level are fewer but harder and often blend with system design, such as designing rate limiters, leaderboards, autocomplete or schedulers using appropriate data structures. Leadership, mentoring, ownership of incidents and stakeholder management are all assessed alongside deep technical judgement.
Find the minimum number of coins needed to make an amount.
Show answer
Your recursive solution passes with memoisation, but the interviewer asks for a bottom-up version. How do you convert it?
Show answer
Your knapsack DP has n equal to 100 items but capacity up to 10 to the power 9, so the table does not fit in memory. What do you do?
Show answer
Find the minimum number of railway platforms needed given arrival and departure times.
Show answer
You must sort a 10 GB file of records on a machine with 1 GB of RAM. How would you do it?
Show answer
Reverse a linked list in groups of k nodes.
Show answer
Find the cheapest flight from one city to another using at most K stops. Why does plain Dijkstra not work directly?
Show answer
How does Huffman coding work?
Show answer
Compute the length of the longest common subsequence of two strings.
Show answer
A satellite image is a grid of land and water cells. How do you count the islands?
Show answer
Tell me about a time you made slow code significantly faster at work.
Show answer
A search box must suggest the closest dictionary words when a user makes a typo. How would you approach it?
Show answer
How does quicksort work and why does pivot choice matter?
Show answer
How do you prove that a greedy algorithm is correct?
Show answer
A company has a fixed budget and several projects with costs and expected returns. How would you choose projects to maximise return?
Show answer
A network has 10 million devices and connections are added continuously. You must answer whether two devices are connected in real time. How?
Show answer
Find the shortest path length from the top-left to the bottom-right of a grid where 1 is a wall.
Show answer
Merge K sorted linked lists using a min-heap.
Show answer
Generate all permutations of a list of distinct numbers using backtracking.
Show answer
Tell me about a time you received critical feedback on your code.
Show answer
Compare Bellman-Ford and Floyd-Warshall.
Show answer
Implement a data structure that returns the median of all numbers added so far.
Show answer
How can two heaps maintain the running median of a stream?
Show answer
What does binary search on the answer mean?
Show answer
How does cycle detection differ in directed and undirected graphs?
Show answer
A monitoring service must report the median response time over a live stream of requests. How would you design it?
Show answer
What is bitmask DP and when is it used?
Show answer
Why can comparison sorts not beat O(n log n), and how do counting and radix sort get around it?
Show answer
Implement Union-Find with path compression and union by size.
Show answer
CPU tasks labelled by type must be scheduled with a cooldown of n slots between two tasks of the same type. How do you minimise total time?
Show answer
How do you handle pressure during a timed online coding test?
Show answer
Why does greedy work for fractional knapsack but fail for 0/1 knapsack?
Show answer
Implement Dijkstra's algorithm with a priority queue.
Show answer
Compute the edit distance between two words.
Show answer
Tell me about a time you explained a technical idea to a non-technical person.
Show answer
Given meeting start and end times for a day, how do you find the minimum number of rooms needed?
Show answer
What is DP on trees? Give an example.
Show answer
A sorted array has been rotated at an unknown point. How can you still search it in O(log n)?
Show answer
A game leaderboard with millions of players needs fast score updates and queries like what rank is this player. How would you design it?
Show answer
Frequently asked questions
What does a Senior Software Engineer / SDE-3 do?
Senior engineers lead the design of large components, set technical direction and solve the hardest performance and scalability problems. DSA interviews at this level are fewer but harder and often blend with system design, such as designing rate limiters, leaderboards, autocomplete or schedulers using appropriate data structures. Leadership, mentoring, ownership of incidents and stakeholder management are all assessed alongside deep technical judgement.
Which skills are tested in a Senior Software Engineer / SDE-3 interview?
Expect questions on System design, Scalable data structures, Technical leadership, Performance engineering, Design reviews. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Senior Software Engineer / SDE-3 interview?
Revise Graphs and Graph Algorithms, Dynamic Programming, Heaps, Priority Queues and Greedy, Sorting, Searching and Backtracking first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.