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. 73Calculate Test ScoresMediumCodingData· Google
  2. 74Construct a binary tree given its preorder and inorder traversals.MediumCoding· Adobe, Amazon
  3. 75Count the number of ways to split a string.EasyCoding· Google
  4. 76Implement a decode and encode function of a general N-ary tree.MediumCoding· Google
  5. 77Degrees of FriendshipEasyCoding· Google
  6. 78Design a task scheduler in Python.MediumCoding· Google, OpenAI
  7. 79Determine if a given binary tree is a binary search tree (BST).MediumCoding· Adobe, Google
  8. 80Determine if two sentences are similar.MediumCodingTechnical· Google
  9. 81Edit distanceHardCoding· Adobe, Amazon
  10. 82Fibonacci NumbersEasyCoding· Adobe, Google
  11. 83Given two strings of equal length, determine if it's possible to form a palindrome by cutting them in half.EasyCoding· Google
  12. 84Implement a function to justify a list of words within a given width.MediumCoding· Google, Microsoft
  13. 85Given positions of N kids and M ice cream sellers on a 1D line, find the smallest distance E such that every kid lies within the range [P - E, P + E] of at least one seller.MediumCoding· Google
  14. 86Reverse a SentenceEasyCoding· Adobe, Apple
  15. 87Reverse a linked list.EasyCoding· Adobe, Apple
  16. 88Write SQL code to publish the Fibonacci series.MediumCodingData· Google, Microsoft
  17. 89Tree Node.EasyCodingData· Google