Frage im Vorstellungsgespräch bei Google

Implement a function to sample from a multinomial distribution efficiently.

Antwort im Vorstellungsgespräch

Anonym

11. März 2025

Use alias sampling method for O(1) lookup and O(n) preprocessing.