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 2Medium 15Hard 4
Filters · onDifficulty, topic, company

34 questions

  1. 25Find the maximum subarray sum.MediumCoding· Adobe, Apple
  2. 26Sudoku SolverHardCoding· Adobe, Apple
  3. 27Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  4. 28Given an array, find the two sum.EasyCoding· Adobe, Amazon
  5. 29Given 2 strings, return the longest common substring.MediumCoding· Salesforce
  6. 30Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon
  7. 31Determine if a number is a power of two.MediumCoding· Salesforce
  8. 32Write a function to return all prime numbers up to a given number n.MediumCoding· Adobe, Apple
  9. 33What are the different types of software testing?MediumCodingTechnical· Salesforce
  10. 34Valid ParenthesesEasyCoding· Apple, Booking.com