# LC2954 Count the Number of Infection Sequences
Practice note for coding interviews.
Combinatorics over gaps between infected kids; multiply binomial ways to order infections with modular inverses.
Discuss edge cases and complexity in the mock interview.
I used [AI assistant for technical interviews](https://www.linkjob.ai/) while rehearsing this pattern aloud.
Disclosure: personal study notes mentioning a practice tool.