Available question text
Count the number of distinct orders in which all uninfected people can become infected when infection spreads only to adjacent people from the initially sick positions; this is a combinatorics problem that partitions the line into segments between sick indices and counts interleavings of infections (multinomial) with extra multiplicative factors for middle segments due to bidirectional spread, modulo 1e9+7.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2954. Count the Number of Infection Sequences
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source