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 0Medium 7Hard 3
Filters · onDifficulty, topic, company

18 questions

  1. 1Find minimum in Rotated Sorted ArrayCoding· Goldman Sachs, ServiceNow
  2. 2Maximize the Beauty of the GardenCoding· ServiceNow
  3. 3Subarrays with K Different IntegersHardCoding· HashedIn, Microsoft
  4. 4Word BreakMediumCoding· Meta, ServiceNow
  5. 5A maximum pathCoding· ServiceNow
  6. 6AVL Tree ProblemCoding· ServiceNow, Spinny
  7. 7Balanced Sub arraysCoding· ServiceNow
  8. 8Bulb Switcher IIMediumCoding· ServiceNow
  9. 9Check if a Parentheses String Can Be ValidMediumCoding· Meta, ServiceNow
  10. 10Find the Occurrence of First Almost Equal SubstringHardCoding· ServiceNow
  11. 11First Missing PositiveHardCoding· FactSet Research Systems Inc., ServiceNow
  12. 12Hard ProblemCoding· ServiceNow
  13. 13Linked List Cycle IIMediumCoding· ServiceNow
  14. 14Linked List ReversalCoding· ServiceNow
  15. 15Medium ProblemCoding· ServiceNow
  16. 16Minimum Number of Swaps to Make the String BalancedMediumCoding· ServiceNow
  17. 17Sum of Beauty in the ArrayMediumCoding· ServiceNow
  18. 18Swapping Nodes in a Linked ListMediumCoding· ServiceNow