Back to problems

Minimum Days to Release Updates

Algorithm · Akuna Capital · Medium

Requirements A mobile application has n scheduled updates. For update i, plannedDate[i] gives its intended release day, while alternateDate[i] provides another possible day for that update. Releases must follow the ascending order of the updates' planned dates. Every update may be published on its scheduled day or on its alternate day. More than one update is allowed to go live on a single day. The function takes an integer n and two integer arrays, plannedDate and…

Checking your access…