DataDriven
LearnPracticeInterviewDiscussDailyJobs

Into One Stream

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
L5

Problem

A log collector hands you a buffer where each slot is either a single event id or a batch of ids grouped in a nested list. Return every id from `items` in one flat list, keeping their left-to-right order.

Summary

Some arrive alone, some in batches. Line them all up.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons