Eight temperature sensors in a server room report every minute, and one of them may be broken. Write oddness(value, readings): how unusual value is among readings, counted in typical gaps from the typical reading. 0 means typical.
Eight temperature sensors in a server room report, and one of them is broken. The readings land one by one, and the average follows them. Pick what the broken one reads.
oddness(value, readings)| value | one reading to judge | e.g. 20 |
| readings | every sensor's reading, value included | e.g. [18, 20, 22] |
| returns | how unusual value is (0 = typical) | |