Back to problems

Retrieve Token List

Algorithm · Confluent · Easy

You have a collection of tokens, each stamped with a Unix creation timestamp. Implement a function that receives a create_time (integer) and a token (string), and returns a list containing that token if the collection contains an entry with both the given timestamp and token value. If no such entry exists, return an empty list. Function Signature Examples Example 1 Explanation: The list contains an entry with timestamp 1623456789 and token 'abc123', so it is returned.…

Checking your access…