PracHub
QuestionsLearningGuidesInterview Prep
|Home/Coding & Algorithms/LinkedIn

How do you sample uniformly from an infinite stream?

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of streaming algorithms, randomized sampling and probability, and algorithmic space–time trade-offs involved in maintaining a uniform sample from an unbounded data stream.

  • easy
  • LinkedIn
  • Coding & Algorithms
  • Data Scientist

How do you sample uniformly from an infinite stream?

Company: LinkedIn

Role: Data Scientist

Category: Coding & Algorithms

Difficulty: easy

Interview Round: Technical Screen

Quick Answer: This question evaluates understanding of streaming algorithms, randomized sampling and probability, and algorithmic space–time trade-offs involved in maintaining a uniform sample from an unbounded data stream.

Related Interview Questions

  • Longest Run of Ones After One Flip - LinkedIn (medium)
  • The Celebrity Problem - LinkedIn (medium)
  • Merge Keyed N-Ary Trees - LinkedIn (medium)
  • Count Trips From Vehicle Logs - LinkedIn (easy)
  • Design O(1) Randomized Multiset - LinkedIn (easy)
|Home/Coding & Algorithms/LinkedIn

How do you sample uniformly from an infinite stream?

LinkedIn logo
LinkedIn
Feb 1, 2026, 5:26 PM
easyData ScientistTechnical ScreenCoding & Algorithms
12
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More LinkedIn•More Data Scientist•LinkedIn Data Scientist•LinkedIn Coding & Algorithms•Data Scientist Coding & Algorithms
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.