Available question text
Count how many people know a secret after n days when each person starts sharing every day beginning delay days after learning it and stops (forgets) after forget days. This reduces to a DP/sliding-window problem where new sharers on a day equal the sum of people who learned the secret between (day - forget + 1) and (day - delay), with the result 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 2327. Number of People Aware of a Secret
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source