Back to problems

Silent Sensor Detector (SensorHealth)

Object-Oriented Programming · Confluent · Easy

Problem: Silent Sensor Detector (SensorHealth) You are operating a fleet of IoT sensors that occasionally send ping signals. Each ping record contains: sensorId: a string identifier such as "Sensor_Alpha" or "Sensor_Beta" timestamp: an integer value indicating when the ping occurred Design a class named SensorHealth that, for any query time T, can decide whether a sensor is STABLE or UNSTABLE at that time. Required capabilities You may choose the exact method signatures. The…

Checking your access…