DataDriven
LearnPracticeInterviewDiscussDailyJobs

Double Duty

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

Domain
Python
Difficulty
medium
Seniority
L4

Problem

A staffing system tracks which employees are assigned to each funded project, and every project splits its budget evenly across the people working on it. Given `projects` with their budgets and the `assignments` linking employees to projects, return each employee's total share across every project they're on; a project with nobody assigned leaves its budget unallocated.

Summary

Split the money. Some wore two hats.

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