Exercise: Toxic Gas Leak Detection
Practice controlling program flow in Dart by scanning sensor grids for toxic gas leaks. Learn to apply nested loops, if conditions, and break statements to identify leak levels and optimize processing in a simulated industrial facility scenario.
We'll cover the following...
We'll cover the following...
Problem statement
An industrial facility utilizes a grid of sensors to monitor gas levels across different facility sectors. The data arrives as a list of lists, where each inner list represents a sector's sensor readings. We must scan each sector, identify if a critical leak exists, and immediately stop scanning that specific sector once a leak is found ...