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

89 questions

  1. 49String manipulation relatedCoding· Google
  2. 50String manipulation related problemCoding· Google
  3. 51Super StreakCoding· Google
  4. 52Target sumCoding· Google
  5. 53Tree Problem TraversalCoding· Google
  6. 54Given 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
  7. 55Given the root of a binary tree, return the length of the diameter of the tree.MediumCoding· Amazon, Google
  8. 56Given a list with response time for each server, calculate how long time it will take to process n requests.MediumCoding· Google
  9. 57Sort a list of natural numbers and their squares in the most efficient way possible.MediumCoding· Google
  10. 58Explain malloc, calloc, and reelloc.MediumCodingTechnical· Google
  11. 59Explain how to find a target sum in an array.MediumCoding· Adobe, Google
  12. 60Generate ParenthesesMediumCoding· Adobe, Google
  13. 61Sort a nearly sorted (or K sorted) array.MediumCoding· Google
  14. 62PermutationsMediumCoding· Adobe, Apple
  15. 63Find the longest palindromic subsequence using dynamic programming.MediumCoding· Adobe, Apple
  16. 64Maximum ProfitEasyCoding· Google
  17. 65Find the maximum subarray sum.MediumCoding· Adobe, Apple
  18. 66Merge k sorted linked lists.HardCoding· Adobe, Apple
  19. 67Given a large n-ary tree where the root node can pass information to one child per iteration, and in subsequent iterations, nodes can pass information to one child while the root continues with others, find the minimum number of iterations to reach all nodes.MediumCoding· Google
  20. 68Given a matrix with a rat, bread, cat, and obstacles, find a path from the rat to the bread that maximizes the minimum distance from cat.HardCoding· Google
  21. 69Write functions to serialize and deserialize a list of strings.MediumCoding· Google, Nvidia
  22. 70Sort a binary array in linear time.EasyCoding· Accenture, Apple
  23. 71Given an integer array nums and an integer k, return true if nums has a subarray of at least two elements whose sum is a multiple of k.HardCoding· Adobe, Apple
  24. 72Calculate the height of a binary tree.EasyCoding· Apple, Google