Delayed Package Detection System
Delayed Package Detection System
MediumArrays0% accepted
Arjun works at Blue Dart's Mumbai warehouse tracking delivery compliance. He needs to identify all packages that arrived later than their promised delivery date to send compensatory vouchers to customers.
Approach
Given arrays of promised delivery days and actual delivery days, count how many packages were delivered late.
Input
promised=[5,7,3,8], actual=[5,9,2,10]
Output
2
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards