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

29 questions

  1. 25A knapsack has a maximum capacity C and there are n items each with weight w[i] and value v[i]. Maximize the knapsack value without exceeding capacity.MediumCodingTechnical· Uber
  2. 26Find the minimum characters to insert to make a string a palindrome.MediumCoding· Uber
  3. 27Given a sorted array of integers (which may include negatives), return the squares of the numbers in sorted order. As a follow-up, find the k-th smallest squared value.MediumCoding· Uber
  4. 28Find the closest palindrome of a given number.MediumCoding· Uber
  5. 29Find Monthly Revenue GrowthHardCodingData· Uber