Coding problems · by company style

16 Google interview problems, solved step by step.

Google’s coding rounds lean on graphs and dynamic programming more than most. These are the classic problems that practise that mix, from grid searches and course prerequisites to string DP. No company publishes its questions; this is the practice set candidates commonly use. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.

0/16 solved
  1. Two SumEasy
  2. Valid AnagramEasy
  3. Longest Substring Without Repeating CharactersMedium
  4. Product of Array Except SelfMedium
  5. Container With Most WaterMedium
  6. Merge IntervalsMedium
  7. Search in Rotated Sorted ArrayMedium
  8. Number of IslandsMedium
  9. Course ScheduleMedium
  10. Binary Tree Level Order TraversalMedium
  11. Top K Frequent ElementsMedium
  12. Kth Largest Element in an ArrayMedium
  13. Coin ChangeMedium
  14. Word BreakMedium
  15. Edit DistanceHard
  16. Trapping Rain WaterHard