PracHub
QuestionsLearningGuidesInterview Prep

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.

  • medium
  • Perplexity
  • Coding & Algorithms
  • Data Scientist

Implement Stratified Sampling by Country

Company: Perplexity

Role: Data Scientist

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Quick Answer: 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.

Last updated: May 7, 2026
Loading…
PracHub

Master your tech interviews with 9,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Implement Dependency-Aware To-Do List - Perplexity (medium)
  • Implement Task Dependencies and Failure - Perplexity (hard)
  • Implement time-versioned KV store with restore - Perplexity (medium)