Implement Stratified Sampling by Country

Read the full interview experience this question came from →

Quick Overview

This question evaluates understanding of stratified sampling, proportional allocation across groups, reproducible random sampling, data grouping and edge-case handling in an in-memory dataset.

Implement Stratified Sampling by Country

Company: Perplexity

Role: Data Scientist

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: This question evaluates understanding of stratified sampling, proportional allocation across groups, reproducible random sampling, data grouping and edge-case handling in an in-memory dataset.

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

Perplexity logo
Perplexity
Apr 9, 2026
mediumData ScientistTechnical ScreenCoding & Algorithms
12
0
Practice
Loading...