Google(Screening) | L4 | BLR,India

Anonymous User
937
Sep 30, 2024

Q1: Given a stream of numbers coming, find the sum of the last k numbers. (k is given beforehand)
Follow-up: sum of last k - (sum to top n%tile), i.e. subtract the top n%tile from the sum.

Comments (11)