Showing 3 of 3 questions
Design a system to manage user authentication tokens. Implement features to generate, renew, and count unexpired tokens, while handling token expiration.
#1. Design Authentication Manager
Imagine a network of computers where some are infected with malware. You need to find the best computer to initially disinfect to minimize the total spread of the malware across the network.
#2. Minimize Malware Spread
Calculate how many people know a secret after a specific number of days, given the timeline of when people learn the secret, start sharing it, and eventually forget it.
#3. Number of People Aware of a Secret
Page 1 of 1 · 3 total