Amazon round 5 SDE 2 DSA Question
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-05-13Added By Anonymous
Source: Link
1We have:
2
35 countries
45 features, where:
53 features have 3 subfeatures
62 features have 4 subfeatures
7
8The first two subfeatures of any feature are its MVP (Minimum Viable Product)
9A feature is considered "live" in a country only if both MVP subfeatures are live
10A subfeature is "live" in a country if it's implemented
11
12The task:
13Represent this data: which subfeatures and features are live per country
14
15Calculate:
16Feature-level parity score = (Number of live features / Total number of features) × 100
17Subfeature-level parity score = (Number of live subfeatures / Total number of subfeatures) × 100Emphasize more on LLD and HLD rather than the DSA itself, the solution should be extensible for large number of country , feature and subfeature changing any time