Implement weighted random choice

Read the full interview experience this question came from →

Quick Overview

This question evaluates understanding of weighted random sampling, probability distributions, input validation, and algorithmic time and space complexity in the context of implementing a sampling routine.

Implement weighted random choice

Company: Pinterest

Role: Data Scientist

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: This question evaluates understanding of weighted random sampling, probability distributions, input validation, and algorithmic time and space complexity in the context of implementing a sampling routine.

Read the full Pinterest Data Scientist interview experience this question came from

Pinterest logo
Pinterest
Mar 10, 2026
mediumData ScientistTechnical ScreenCoding & Algorithms
21
0
Practice
Loading...