Interview prep for engineering roles

Built from real interview and OA reports at 87 companies. See them by company

Interview prep

MCQs

A daily 5 and rounds in 12 subjects

Today’s challenge

Practise by topic

Rounds of 5 to 20 questions, with the answer and an explanation after each one. Pick a level and a length, then a topic.

Questions on what candidates say these companies asked them, each linked to the interview report it comes from.

Interview prep

Coding

A daily problem and 88 to solve

Today’s coding problem

A new problem every day. See every coding problem.

Our own problems on tasks candidates reported from interviews. Write in Python, C++, Java, JavaScript or C, run it on the examples, then submit it against every hidden test.

  1. 1 A list you can add to at both endsdesign · linked list Amazon Easy
  2. 2 A queue made of two stacksdesign · stack · queue Citi, American Express, Flipkart Easy
  3. 3 A water bottle as a classdesign · object-oriented programming Oro Money Easy
  4. 4 Cancel out the zeros and onesstrings · stack · counting HSBC Easy
  5. 5 Cover a 2 by n board with dominoesdynamic programming · counting Quest Global Easy
  6. 6 Do the brackets close properly?stack · strings Zoho, Ericsson, PhonePe, Wells Fargo Easy
  7. 7 Does it use every letter?strings · hashing IBM Easy
  8. 8 Does the digit-square chain reach 1?math · cycle detection · hashing Zoho Easy
  9. 9 How often a number appears in a sorted arrayarrays · binary search Aditya Birla Group Easy
  10. 10 One trade, best profitarrays · greedy Quest Global Easy
  11. 11 Reverse the letters, leave the reststrings · two pointers Spire Technologies Easy
  12. 12 Reverse the order of the wordsstrings · two pointers Oracle Easy
  13. 13 Rotate an array to the rightarrays · reversal Spire Technologies, GlobalLogic Easy
  14. 14 Sort a row of 0s, 1s and 2sarrays · two pointers · sorting OLX, Brillio, Ericsson Easy
  15. 15 Square root, rounded downbinary search · math Microsoft, Zoho Easy
  16. 16 The number that is not therearrays · math · bit manipulation HSBC, Mastercard Easy
  17. 17 The number without a partnerbit manipulation · arrays To The New Easy
  18. 18 The second largest valuearrays Oracle, GlobalLogic Easy
  19. 19 The value that fills more than halfarrays · counting · voting Amazon Easy
  20. 20 Time spent at the airportdesign · hash map Uber Easy
  21. 21 Turn a linked list aroundlinked list · pointers GlobalLogic Easy
  22. 22 Two positions that add uparrays · hashing Infosys, D. E. Shaw, Spire Technologies, GE HealthCare Easy
  23. 23 Where the two sides weigh the samearrays · prefix sums Aditya Birla Group Easy
  24. 24 Write each run of letters oncestrings · two pointers IBM Easy
  25. 25 A cache that forgets the oldestdesign · hash map · linked list Microsoft, Flipkart, Goldman Sachs, Societe Generale, Intuit, Oracle Medium
  26. 26 A car park that finds the nearest slotdesign · heap · hash map Zoho Medium
  27. 27 A palindrome after one deletionstrings · two pointers Meta Medium
  28. 28 Best stretch of numbersarrays · dynamic programming Cisco, Quest Global, Salesforce Medium
  29. 29 Collect without neighboursdynamic programming · arrays Quest Global Medium
  30. 30 Count the islandsgraphs · depth-first search · breadth-first search · grids Societe Generale, Infosys, Amazon Medium
  31. 31 Counting words by how they startdesign · trie · strings PhonePe Medium
  32. 32 Every balanced string of bracketsbacktracking · recursion · strings Zoho, Amazon, Flipkart Medium
  33. 33 Every place a pattern appearsstrings · string matching Verizon, Barclays Medium
  34. 34 Fewest jumps to the endgreedy · arrays · breadth-first search Samsung, Zoho Medium
  35. 35 Find it in a turned listbinary search · arrays Qualcomm Medium
  36. 36 Friends of friendsdesign · union-find · graphs Oracle Medium
  37. 37 Group the anagramsstrings · hashing · sorting PayPal Medium
  38. 38 How far back is it the best?stack · monotonic stack · arrays Flipkart, Amazon Medium
  39. 39 How far bricks and ladders take youheap · greedy Flipkart Medium
  40. 40 How long until the whole tree is infectedtrees · breadth-first search · graphs Amazon Medium
  41. 41 How many numbers divide itmath · number theory Walmart Medium
  42. 42 How many platforms the station needsgreedy · sorting · two pointers Deutsche Bank Medium
  43. 43 How often a value shows up between two placesdesign · binary search · hashing Amazon Medium
  44. 44 Is there a loop in a one-way graph?graphs · topological sort · depth-first search Amazon Medium
  45. 45 Join the overlapping stretchesarrays · sorting · intervals Amazon, Meta Medium
  46. 46 Longest mirror inside a wordstrings · two pointers · dynamic programming IBM, OLX Medium
  47. 47 Longest piece two strings sharestrings · dynamic programming Razorpay Medium
  48. 48 Longest rising pickdynamic programming · binary search Quest Global, Google Medium
  49. 49 Longest run of next numbershashing · arrays Caterpillar, Zoho Medium
  50. 50 Longest run with no repeatsstrings · sliding window · hashing Salesforce Medium
  51. 51 Longest subsequence two strings sharestrings · dynamic programming UST, Aptiv, Infosys Medium
  52. 52 Make every letter count differentgreedy · strings · sorting American Express Medium
  53. 53 Nodes no ancestor outrankstrees · depth-first search Amazon Medium
  54. 54 Pay an amount with the fewest coinsdynamic programming JPMorgan Chase, PayPal Medium
  55. 55 Pieces with as many 0s as 1sstrings · prefix sums · hashing JPMorgan Chase Medium
  56. 56 The best of the window minimumssliding window · deque · arrays JPMorgan Chase Medium
  57. 57 The biggest square of onesdynamic programming · grid Flipkart Medium
  58. 58 The cheapest walk across a griddynamic programming · grid Amazon Medium
  59. 59 The cheapest way to add them all upgreedy · heap JPMorgan Chase Medium
  60. 60 The date some days latermath · implementation Oracle Medium
  61. 61 The fastest way through two assembly linesdynamic programming · arrays Societe Generale Medium
  62. 62 The k-th biggest numberheap · sorting · quickselect American Express, Salesforce, Flipkart, Syncfusion Medium
  63. 63 The longest stretch where every letter pairs upstrings · prefix sums · bit manipulation · hashing American Express Medium
  64. 64 The n-th multiple of either numberbinary search · math GlobalLogic Medium
  65. 65 The next arrangement of the lettersstrings · permutations · greedy JPMorgan Chase Medium
  66. 66 The next bigger number to the rightarrays · stacks · monotonic stack Infosys Medium
  67. 67 The reflected Gray codebit manipulation · recursion Citi Medium
  68. 68 The richest walk through a minebacktracking · grid · depth-first search Amazon Medium
  69. 69 The way down to a valuetrees · depth-first search · backtracking Amazon, Meta Medium
  70. 70 Three on the risearrays · greedy Flipkart, KLA Corporation Medium
  71. 71 Walk a grid in a spiralarrays · matrices · simulation Walmart Medium
  72. 72 What you see from the lefttrees · breadth-first search Quest Global Medium
  73. 73 Where a number stands in a streamdesign · binary indexed tree · binary search Meta Medium
  74. 74 Who is ahead at time t?design · binary search · counting Amazon Medium
  75. 75 Work out a postfix expressionstack · math Zoho Medium
  76. 76 A cache that forgets the least useddesign · hash map · linked list Amazon, Cisco Hard
  77. 77 Can every flood be avoided?greedy · binary search · union-find MongoDB Hard
  78. 78 Flip the list in groupslinked lists · pointers Microsoft Hard
  79. 79 Longest balanced bracket runstrings · stack · dynamic programming Salesforce Hard
  80. 80 Movie ratings where critics count doubledesign · hash map · sorting Uber Hard
  81. 81 Rain caught between barsarrays · two pointers · stack Amazon, Qualcomm, Arcesium Hard
  82. 82 Reach the pair by addingmath · number theory JPMorgan Chase Hard
  83. 83 Read the alphabet off a sorted listgraphs · topological sort · strings Intuit, Amazon Hard
  84. 84 Share the books fairlybinary search · greedy · arrays Samsung Hard
  85. 85 Smallest positive left outarrays · hashing · in-place Caterpillar Hard
  86. 86 The biggest rectangle of onesstack · dynamic programming · grid Amazon Hard
  87. 87 The middle of a stream of numbersdesign · heap Salesforce, Intuit Hard
  88. 88 The richest path through a treetrees · depth-first search · dynamic programming Flipkart Hard
Prepared? See who is hiring

Engineering internships and entry-level jobs in India, newest first.