google logo
Google· L5 Role

Google L5 Interview Experience

Posted
4 Mar 2026
508 reads

Summary

I had an interview for an L5 Role at Google and was presented with a problem focused on efficiently handling range update queries on an array.

How it went

Helping the community -
I gave an interview for an L5 Role.

Questions asked (1)

  1. 01

    Range Update Query on Array

    Data Structures & Algorithms · Hard

    I was given:
    - An array arr of size n
    - q queries
    - Each query consists of (l, r, k)

    For each query, I needed to update all elements from index l to r to value k.

    Constraints:
    - n up to 10^5
    - q queries up to 10^5

    Two variations were discussed:
    1) If k remains the same for all updates within a range.
    2) If k is different for different updates within a range.

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!