google logo
Google· SDE III

Google L5 Screening Interview Question

Posted
21 May 2025
428 reads

Summary

I was asked to implement a class for a union of ranges during my Google L5 screening interview.

How it went

During my Google L5 screening interview, I was presented with the following problem: Implement a class that acts as a union of ranges. The class should allow to: - Insert ranges into the class. - Query the class to check if a particular point is in any of the inserted ranges. Example: Ranges Inserted: 2-5 9-13 Points Queried: 0 -> False 2 -> True 10 -> True

Questions asked (1)

  1. 01

    Implement Range Union Class

    Data Structures & Algorithms

    Implement a class that acts as a union of ranges. The class should allow to: - Insert ranges into the class. - Query the class to check if a particular point is in any of the inserted ranges. Example: Ranges Inserted: 2-5 9-13 Points Queried: 0 -> False 2 -> True 10 -> True

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Google recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!