1p3a Experience · Feb 2026

Amazon Online Assessment Coding Questions Refactoring Modules

Interview Experience

Coding round: Online (90 mins)

First problem: There will be m module. you have to refactor those modules and also need to release. To refactor each module require specific amount of days. refa

Full Details

Coding round: Online (90 mins)

First problem: There will be m module. you have to refactor those modules and also need to release. To refactor each module require specific amount of days. refactor = [2, 2] where first module takes 2 days and second module takes 2 days. There will be another arrays n sizes schedule = [0, 0, 1, 2, 2, 2, 0, 1, 2] which if schedule[i] = 0 means you can't release but you can refactor/skip if shcedule[i] > 0 can refactor/skip/release. but to release only specified module can be released. Now you have to find out what is the minimum of days required to release all module if not possible returns -1.

Note: - module needs to be refactored before release - at a single day only module can be released Explanation: 1st module will be refactored on 1st, 2nd days and release will be on 3rd days 2nd module will be refactored on 4th, 5th days and release will be 6th days so answer is 6

Any suggestion how to solve that?

About This Question

This is a candidate experience report from a amazon interview for a swe role during the oa round reported in 2026.

It covers the following topics: Arrays .

Topics