Forest Fire Temperature Hotspot
Forest Fire Temperature Hotspot
EasyArrays100% accepted
Priya monitors temperature sensors across a 2D grid in the Western Ghats forest. Each sensor records hourly temperature. She needs to find the row with maximum total temperature to identify the hottest forest region requiring immediate attention.
Approach
Given M×N 2D array of temperatures, find the sum of temperatures in the row with highest total.
Input
5 3
32 30 31
34 31 25
50 49 37
35 42 49
40 34 34
Output
136
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