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

70 questions

  1. 49Sudoku SolverHardCoding· Adobe, Apple
  2. 50How should Adobe Creative Cloud target small businesses in Singapore?HardProduct· Adobe
  3. 51Tell me about a tough decision you made during a project.MediumBehavioral· Adobe, Amazon
  4. 52Calculate the trapped rainwater between bars in a given array.HardCoding· Adobe, Amazon
  5. 53Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  6. 54Build a CalculatorMediumCoding· Adobe, Apple
  7. 55Determine if an array of integers from 1 to n contains a duplicate in constant time and space.MediumCoding· Adobe, Apple
  8. 56Construct a binary tree given its preorder and inorder traversals.MediumCoding· Adobe, Amazon
  9. 57Determine if a given binary tree is a binary search tree (BST).MediumCoding· Adobe, Google
  10. 58Edit distanceHardCoding· Adobe, Amazon
  11. 59Fibonacci NumbersEasyCoding· Adobe, Google
  12. 60Given an array, find the two sum.EasyCoding· Adobe, Amazon
  13. 61How do you prioritize tasks?MediumBehavioralProduct· Accenture, Adobe
  14. 62Tell me about the most challenging situation you faced in your career and how you handled it.MediumBehavioral· Adobe, Amazon
  15. 63Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon
  16. 64Write a function to return all prime numbers up to a given number n.MediumCoding· Adobe, Apple
  17. 65What is the project you are most proud of?MediumBehavioral· Adobe, Amazon
  18. 66Tell me about a time when you had to make a decision quickly.MediumBehavioral· Adobe, Amazon
  19. 67Reverse a SentenceEasyCoding· Adobe, Apple
  20. 68Reverse a linked list.EasyCoding· Adobe, Apple
  21. 69How would you create a three-year roadmap as head of product?MediumBehavioralProduct· Adobe, Dropbox
  22. 70Is this a valid palindrome?EasyCoding· Adobe, Apple