Question bank

4,310 interview questions, answered.

Reference answers, what the interviewer is really testing, how it is graded, and the follow-ups that come next.

Easy 190Medium 2,498Hard 982
Filters · onDifficulty, topic, company

205 questions

  1. 1Assign human labelers, tasks, and models so every pairing is balanced.HardCoding· 30 min· OpenAI
  2. 2Climbing StairsEasyCoding· Media.net
  3. 3Koko eating bananas.MediumCoding· Flipkart, Amazon
  4. 4Merge IntervalsMediumCoding· Blinkit, Docquity Holdings(PBS)
  5. 5Merge two sorted listsEasyCoding· Intuit, Oracle
  6. 6Top k frequent elementsMediumCoding· Amazon, Apple
  7. 7Group anagramsMediumCoding· Blinkit, MakeMyTrip
  8. 8Linked List CycleEasyCoding· CCognitree
  9. 9Product of Array Except SelfMediumCoding· PayPal, Target
  10. 10Sort a K-Messed ArrayMediumCoding· Meta
  11. 11Course ScheduleMediumCoding· Zoho
  12. 12Validate IP AddressMediumCoding· Salesforce
  13. 1301 Matrix: find the nearest zero for every cellMediumCoding· Adobe, Oracle
  14. 14Given a list of car rental requests with start and end times, assign cars to rentals such that the total number of cars used is minimized.MediumCoding· Google
  15. 15Write a function to balance parentheses in a given string by removing the fewest characters possible. Ensure that each opening parenthesis has a corresponding closing parenthesis and each pair is properly nested.MediumCoding· Meta
  16. 16Given a string with parentheses, write a function that removes the minimum number of characters to balance the parentheses.MediumCoding· Meta
  17. 17Balanced TreeMediumCoding· Spotify, Uber
  18. 18Given a list of items with different sizes, write an algorithm to pack these items into the minimum number of batches without exceeding the capacity of each batch.MediumCoding· Amazon
  19. 19Given a binary tree, check if each node is the average of all descendantsMediumCoding· Meta
  20. 20Given the root of a binary tree, return the length of the diameter of the tree.MediumCoding· Amazon, Google
  21. 21Given the root of a binary tree of integers, return the maximum path sum.MediumCoding· Adobe, Apple
  22. 22Build a Basic Regex ParserHardCoding· Adobe, Apple
  23. 23Write a function to check whether a string contains a substring.EasyCoding· Nvidia
  24. 24Given a castle with rooms named after flowers where each room has an instruction to the next room, write an algorithm to find the rooms containing treasure.MediumCoding· PayPal