InterviewDB Question

Working Hours Register Program - Level 3: Weekly Aggregation and Overtime Calculation

Question Details

Round 1 - Coding Problem Building on your Level 2 register, add weekly reporting and overtime logic: get_weekly_report(emp_id, week_start) — return a dict mapping each day of the week to total hours worked (0.0 if no sessions). get_overtime_hours(emp_id, week_start, regular_limit=40) — return hours worked beyond regular_limit in that week, after merging overlapping sessions per day. get_top_n_employees(week_start, n) — return the top N employees by total hours that week. Follow-ups Some employee…

Full Details

🔒

Unlock all Codesignal questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a codesignal interview.

It covers the following topics: Coding, Industry Coding Framework .