Pergunta de entrevista da empresa Bloomberg

Design tinyURL

Respostas da entrevista

Sigiloso

1 de fev. de 2018

HashMap w/ Unique ID

Sigiloso

13 de dez. de 2019

To generate unique IDs, you can use the Timestamp ( always unique) at the point in time + maybe an atomic incrementing integer in case of multiple threads of requests at the same time.