Search
⌘K

Leetcode 1797. Design Authentication Manager

Manage tokens that expire timeToLive seconds after creation/renewal, supporting generate, renew (only if the token is still unexpired), and countUnexpiredTokens (with expirations at time t processed before actions at t). The core challenge is efficiently tracking and removing expired tokens — typically handled with a token->expiry map plus a min-heap/queue for lazy expiration cleanup.

Asked at:

OpenAI


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid February, 2026

OpenAI

Staff

Comments

Your account is free and you can post anonymously if you choose.