Google | Interview | Round 1

Anonymous User
762
Oct 22, 2025
Oct 22, 2025

Given a List of ApkInfo. Return a list of supported apk Ids for a given OS range. The queries will be coming in continiously.

class ApkInfo {
int apkId;
int minOsVersion;
int maxOsVersion;
}

I suggested the approach using Segment Tree, was able to implement the base version without lazy propagation.

But could not finish the follow up of adding new ApkInfo as the time ran out.

Wondering if Segment Tree was the right solution now. If any one has any better solution do let me know

Comments (4)