LeetCode Question · May 2024

Twilio Interview experience (L4)

3 upvotes 783 views 2 replies

Question Details

Hackerrank online assessment 2 questions (medium complexity) Time - 90 minutes Question - 1: https://leetcode.com/problems/smallest-string-with-swaps/description/ this question but with a different wording. Question - 2: Implement users token with TTL (time to live)....

Full Details

Hackerrank online assessment
2 questions (medium complexity) Time - 90 minutes
Question - 1: https://leetcode.com/problems/smallest-string-with-swaps/description/ this question but with a different wording.
Question - 2: Implement users token with TTL (time to live). You will be given list of queries. Queries can be of following type
\t1. generate current_time
\t2. renew current_time
\t3. count current_time
For count query you have to tell the number of tokens that are currently active.

Note - If a renew token count is issued at the same time when the token is expiring then the token will be marked as expired.

Will update it after next rounds.

About This Question

This is a reported interview question from a twilio interview for a swe role (mid level) during the oa round reported in 2024.

It covers the following topics: Sql, Strings .

Difficulty rating: Medium