Design a weighted random value generator

Read the full interview experience this question came from →

Quick Overview

This question evaluates understanding of weighted random sampling, probability-proportional selection, data structures for aggregating weights, and API design with time-based expiration semantics.

Design a weighted random value generator

Company: Amazon

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: This question evaluates understanding of weighted random sampling, probability-proportional selection, data structures for aggregating weights, and API design with time-based expiration semantics.

Read the full Amazon Software Engineer interview experience this question came from

Amazon logo
Amazon
Jan 6, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
9
0
Loading...