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

16 questions

  1. 1Merge IntervalsMediumCoding· Blinkit, Docquity Holdings(PBS)
  2. 2Group anagramsMediumCoding· Blinkit, MakeMyTrip
  3. 3Course ScheduleMediumCoding· Zoho
  4. 4Validate IP AddressMediumCoding· Salesforce
  5. 5Given n houses in a line with money in each, find the maximum amount a robber can steal, without stealing from two adjacent houses.MediumCoding· Adobe, Apple
  6. 6Find the longest substring without repeating characters.MediumCoding· Apple, Intuit
  7. 7Implement LRU Cache.HardCoding· Accenture, Adobe
  8. 8Find the maximum subarray sum.MediumCoding· Adobe, Apple
  9. 9Sudoku SolverHardCoding· Adobe, Apple
  10. 10Given stock prices for the next n days, how can you maximize your profit by buying or selling one share per day?MediumCoding· Adobe, Apple
  11. 11Given an array, find the two sum.EasyCoding· Adobe, Amazon
  12. 12Given 2 strings, return the longest common substring.MediumCoding· Salesforce
  13. 13Given an nxn grid of 1s and 0s, return the number of islands in the input.MediumCoding· Adobe, Amazon
  14. 14Determine if a number is a power of two.MediumCoding· Salesforce
  15. 15Write a function to return all prime numbers up to a given number n.MediumCoding· Adobe, Apple
  16. 16Valid ParenthesesEasyCoding· Apple, Booking.com