Identify Overloaded Power Grid Zones
Identify Overloaded Power Grid Zones
MediumStrings0% accepted
Delhi power distribution tracks zone loads as 'N-450,S-380,E-520,W-400'. Each zone has a capacity of 600 units. Find which zones exceed their capacity to trigger load balancing alerts.
Approach
Given a string of zone loads in format ZONE-VALUE (e.g., 'N-450,S-380'), identify zones exceeding capacity of 600 units and count how many zones are overloaded.
Input
N-450,S-380,E-520,W-400
Output
0
More Strings 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