TwitchSoftware Engineer · OnsiteCodemia practiceSimulate Hype Train Start, Expiry, and Final Level
Given time-ordered support events (timestamp, user, points), simulate a Hype Train that starts when a minimum number of distinct users contribute within a start window, stays alive while contributions keep arriving before an expiry timeout, and ends at a level based on total points. Return each train's start, end, points and level.
Medium
Coding & Algorithms