INTERVIEW PREP · SDE 2

SDE 2 interview questions and process

For engineers with about 2 to 5 years of experience (also called mid-level software engineer, Software Engineer II, SDE II). The rounds at 20 companies, what interviewers expect at this level, and the questions candidates report, most widely asked first.

SDE 2 interviews at 20 companies

CompanyTitleInterviews after screeningDesign round
GoogleL4 Software Engineer IIIAbout 5Usually not
AmazonSDE II (L5)About 6Yes
MicrosoftSoftware Engineer II (61–62)About 4Usually not
MetaE4 Software EngineerAbout 5Yes
AppleICT3 Software EngineerAbout 8Yes
NetflixL4 Software Engineer 4About 6Yes
UberL4 Software Engineer IIAbout 5Yes
LinkedInSoftware Engineer / Senior Software EngineerAbout 6Yes
AirbnbG8 Software EngineerAbout 7Yes
StripeL2 Software EngineerAbout 6Yes
AtlassianP40 Software EngineerAbout 5Yes
Goldman SachsAnalyst (2–3 years) to AssociateAbout 6Yes
SalesforceMTS to SMTSAbout 5Yes
OracleIC2–IC3 MTS / Senior MTSAbout 6Yes
AdobeMTS-2, Computer Scientist / SDE 3About 5Yes
FlipkartSDE-2About 4Yes
Walmart Global TechSoftware Engineer IIIAbout 5Yes
PhonePeSoftware Engineer 2About 4Yes
SwiggySDE-IIAbout 4Yes
RazorpaySDE-2About 4Yes

What each round expects at SDE 2

Coding questions for SDE 2 interviews

Pick companies to see only their questions. Each links to a problem with an editor, hidden tests, a walkthrough video and solutions in four languages.

Difficulty
Topic
Company
88 questions
  1. LRU Cache Medium Design Data Structures also Amazon, Microsoft, Apple +5
  2. Lowest Common Ancestor of a Binary Tree Medium Trees & BST also Google, Meta, Netflix +2
  3. Number of Islands Medium Graphs also Amazon, Microsoft, Meta +2
  4. Trapping Rain Water Hard Arrays & Hashing also Amazon, Microsoft, Goldman Sachs +2
  5. Course Schedule Medium Graphs also Google, Amazon, Netflix +2
  6. Longest Substring Without Repeating Characters Medium Arrays & Hashing also Amazon, Netflix, Adobe +1
  7. Cheapest Flights Within K Stops Medium Graphs also Google, Airbnb, Flipkart +1
  8. Two Sum Easy Arrays & Hashing also Amazon, Microsoft, Atlassian +1
  9. Merge Intervals Medium Intervals also Netflix, LinkedIn, Atlassian +1
  10. Coin Change Medium Dynamic Programming also Google, Airbnb, Goldman Sachs +1
  11. Best Time to Buy and Sell Stock Easy Dynamic Programming also Amazon, Apple, Netflix +1
  12. Minimum Window Substring Hard Arrays & Hashing also Google, Meta, LinkedIn +1
  13. Serialize and Deserialize Binary Tree Hard Trees & BST also Amazon, Meta, LinkedIn +1
  14. Alien Dictionary Hard Graphs also Amazon, Meta, Airbnb
  15. First Missing Positive Hard Arrays & Hashing also Microsoft, Flipkart, Walmart Global Tech
  16. Group Anagrams Medium Arrays & Hashing also Amazon, Meta, Oracle
  17. Next Greater Element I Easy Monotonic Stack also Oracle, Adobe, Walmart Global Tech
  18. Word Ladder Hard Graphs also Google, Amazon, LinkedIn
  19. Binary Tree Maximum Path Sum Hard Trees & BST also Google, Amazon, Adobe
  20. Copy List with Random Pointer Medium Linked List also Amazon, Microsoft, Meta
  21. Distribute Coins in Binary Tree Medium Trees & BST also Amazon, PhonePe
  22. Evaluate Division Medium Graphs also Uber, Stripe
  23. Longest Repeating Character Replacement Medium Arrays & Hashing also Uber, Adobe
  24. Maximum Profit in Job Scheduling Hard Dynamic Programming also Airbnb, Razorpay
  25. Word Search Medium Recursion & Backtracking also Microsoft, PhonePe
  26. Valid Word Abbreviation Easy Arrays & Hashing also Meta, LinkedIn
  27. Time Based Key-Value Store Medium Binary Search also Apple, Netflix
  28. Max Stack Hard Design Data Structures also LinkedIn, Salesforce
  29. Asteroid Collision Medium Stack also Flipkart, Swiggy
  30. Merge k Sorted Lists Hard Heaps also Amazon, Microsoft
  31. Longest Substring with At Most K Distinct Characters Medium Arrays & Hashing also Microsoft, Razorpay
  32. Odd Even Linked List Medium Linked List also Apple, Adobe
  33. Valid Palindrome II Easy Arrays & Hashing also Meta, Apple
  34. Valid Parentheses Easy Stack also Apple, Netflix
  35. Spiral Matrix Medium Arrays & Hashing also Microsoft, Adobe
  36. Subarray Sum Equals K Medium Arrays & Hashing also Meta, PhonePe
  37. Top K Frequent Words Medium Heaps also Amazon, Goldman Sachs
  38. Container With Most Water Medium Arrays & Hashing also Microsoft, Goldman Sachs
  39. Product of Array Except Self Medium Arrays & Hashing also Meta, Oracle
  40. Implement Queue using Stacks Easy Stack also Goldman Sachs, Walmart Global Tech
  41. House Robber Medium Dynamic Programming also Adobe, Flipkart
  42. Decode String Medium Stack also Google, Microsoft
  43. Meeting Rooms II Medium Intervals also Amazon, Meta
  44. Koko Eating Bananas Medium Binary Search also Amazon, Goldman Sachs
  45. Diameter of Binary Tree Easy Trees & BST also Meta, Adobe
  46. Binary Tree Zigzag Level Order Traversal Medium Trees & BST also Amazon, Walmart Global Tech
  47. Reverse Nodes in k-Group Hard Linked List also Amazon, Microsoft
  48. Reconstruct Itinerary Hard Graphs also Amazon, Airbnb
  49. Kadane's Algorithm - Simple Medium Arrays & Hashing also LinkedIn, Adobe
  50. 0 - 1 Knapsack Problem Medium Dynamic Programming also Goldman Sachs, Flipkart
  51. Median of Two Sorted Arrays Hard Binary Search also Microsoft, Adobe
  52. Longest Palindromic Subsequence Medium Dynamic Programming also LinkedIn, Goldman Sachs
  53. Continuous Subarray Sum Medium Arrays & Hashing also Oracle, Adobe
  54. Gas Station Medium Arrays & Hashing also Amazon, Microsoft
  55. Implement Trie (Prefix Tree) Medium Tries also Google
  56. Reverse Words in a String Medium Arrays & Hashing also Microsoft
  57. Decode Ways Medium Dynamic Programming also Goldman Sachs
  58. Maximum Frequency Stack Hard Design Data Structures also Salesforce
  59. Min Stack Medium Design Data Structures also Salesforce
  60. Word Break Medium Dynamic Programming also Flipkart
  61. Combination Sum (repeating elements) Medium Recursion & Backtracking also Airbnb
  62. Search a 2D Matrix II (Young Tableau) Medium Binary Search also Oracle
  63. Surrounded Regions Medium Graphs also Uber
  64. Shortest Path in Binary Matrix Medium Graphs also Oracle
  65. Top K Frequent Elements Medium Heaps also Apple
  66. Missing Number Easy Bit Manipulation also Oracle
  67. N-Queens Hard Recursion & Backtracking also Walmart Global Tech
  68. Kth Largest Element in an Array Medium Heaps also Netflix
  69. Burst Balloons Hard Dynamic Programming also Goldman Sachs
  70. Rotting Oranges Medium Graphs also Flipkart
  71. Swap Nodes in Pairs Medium Linked List also Microsoft
  72. Kth Largest Element in a Stream Easy Heaps also Goldman Sachs
  73. Sort List Medium Linked List also Microsoft
  74. Kth Smallest Element in a BST Medium Trees & BST also Goldman Sachs
  75. Unique Paths II Medium Dynamic Programming also Flipkart
  76. Construct Binary Tree from Preorder and Inorder Traversal Medium Trees & BST also Microsoft
  77. Permutations Medium Recursion & Backtracking also LinkedIn
  78. 01 Matrix Medium Graphs also Oracle
  79. Largest Rectangle in Histogram Hard Monotonic Stack also Flipkart
  80. Validate Binary Search Tree Medium Trees & BST also Microsoft
  81. Linked List Cycle Easy Linked List also Oracle
  82. Longest Common Subsequence Medium Dynamic Programming also Google
  83. Maximal Square Medium Dynamic Programming also Google
  84. Daily Temperatures Medium Monotonic Stack also Amazon
  85. Sort Colors Medium Arrays & Hashing also Microsoft
  86. Evaluate Reverse Polish Notation Medium Stack also Google
  87. Flood Fill Easy Graphs also Amazon
  88. Basic Calculator Hard Stack also Meta

System design questions at SDE 2

From the 18 companies that run a design round at this level.

How to answer any design question: the LADDER method · How the design round is scored

Questions people ask

What is asked in a SDE 2 interview?

Most companies run about 5 interviews after the screening at this level. Two or three rounds at medium to hard level. You are expected to reach the optimal approach with fewer hints and to test without being asked.

Is system design asked for SDE 2?

18 of the 20 companies here run a design round at this level (Amazon, Meta, Apple, Netflix, Uber, LinkedIn, Airbnb, Stripe, …). Present at most companies. A sound end-to-end design with sensible components and basic scaling is enough.

Which coding questions are asked most in SDE 2 interviews?

Asked at the most companies: LRU Cache (8), Lowest Common Ancestor of a Binary Tree (5), Number of Islands (5), Trapping Rain Water (5), Course Schedule (5), Longest Substring Without Repeating Characters (4).

All companies · Behavioral questions · Track an interview