Advertisement
pranjalA

GoogleQuestions

Oct 21st, 2020 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Google Question:
  2.  
  3. Round 1:
  4.  
  5. https://leetcode.com/problems/single-number-ii
  6. Round 2:
  7.  
  8. https://leetcode.com/problems/decode-string
  9. Round 3:
  10.  
  11. Given a tree representation of a html parsed output, wherein every block is a node in the tree, find if two html docs contain the same text.
  12.  
  13. Explanation
  14. Round 4:
  15.  
  16. Given a 2D matrix M X N, support two operations:
  17. Query(row1, col1, row2, col2) such that I get the sum of all numbers in the rectangle ((row1, col1), (row1, col2), (row2, col1), (row2, col2)) and
  18. Update(row, col) to a new number
  19.  
  20. And query is a very frequent operation and update is a rare operation, so query should be really fast, but update can be slower.
  21.  
  22. Follow up: How would you solve this in a distributed fashion
  23.  
  24. Round 5:
  25.  
  26. https://leetcode.com/problems/toeplitz-matrix
  27. Follow-up: assume that the whole matrix cannot be fit in memory and should be read from a file, assume that a few rows and all columns can be read in, how to verify?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement