Coding Challenge · ADVANCED
In a busy hospital emergency room, patients arrive with varying severity levels and estimated treatment durations. The ER must always treat the most severe patient available, breaking ties by shortest treatment time, then by earliest arrival. Given a list of patients, each with arrivalTime, severity, treatmentTime, ret…