Two sensors are used to record a sequence of data points. You are given two integer arrays sensor1 and sensor2 of identical length, representing the recorded values.
Exactly one of the sensors might be faulty. A faulty sensor drops exactly one measurement from the stream. As a result, all remaining data points following the dropped value are shifted left by
Return sensor1 is the faulty sensor, or sensor2 is the faulty sensor. If it cannot be definitively determined which sensor is faulty, return
Constraints:
sensor1.length sensor2.length
sensor1.length
sensor1[i], sensor2[i]
Two sensors are used to record a sequence of data points. You are given two integer arrays sensor1 and sensor2 of identical length, representing the recorded values.
Exactly one of the sensors might be faulty. A faulty sensor drops exactly one measurement from the stream. As a result, all remaining data points following the dropped value are shifted left by
Return sensor1 is the faulty sensor, or sensor2 is the faulty sensor. If it cannot be definitively determined which sensor is faulty, return
Constraints:
sensor1.length sensor2.length
sensor1.length
sensor1[i], sensor2[i]