Google
Software Development Engineer 3
Mean of Last N Values
Medium
Phone ScreencodingCandidate Selected
Given a stream of float values, at any point, return the mean of the last n values. **Follow-up:** Now drop the k highest of those n values before taking the mean.
This question was asked in
Google Software Development Engineer 3 Interview Experience
I had a comprehensive interview experience with Google that spanned five rounds, including phone screens and onsite interviews. The questions covered various topics such as data structures and algorithms, graphs, strings, and trees, along with behavioral assessments. Overall, the difficulty was medium, and the experience was intense but insightful.