Ice Cream Distribution Supply Feasibility
Ice Cream Distribution Supply Feasibility
HardArrays0% accepted
Priya manages ice cream distribution for a franchise across Delhi zones. She has supply amounts at various centers and demand requirements in each zone. Check if available supply can meet all zone demands.
Approach
Given supply array and demand array, determine if total supply can satisfy all zone demands.
Input
supply=[100,150,200], demand=[50,100,150,50]
Output
true
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