Dragon Daycare Measurement
Par 4Question 10beginnerSheet 1750822302
Deep Breath
You're running a daycare for baby dragons and need to measure wingspans for their health records using a LIDAR system that keeps malfunctioning in the heat. The dragons won't sit still, your sensors are melting, and the insurance company demands precise biometric data. The LIDAR keeps getting confused by flame breath and interprets wing flapping as seismic activity. Dragons think the laser dots are toys and keep trying to eat them. Your measurements range from hummingbird to 747 aircraft depending on whether the dragon is having a tantrum. Your task: Build a system that can accurately determine wingspan despite constantly moving targets, thermal interference, and equipment that randomly catches fire.
Why You're Doing This
This is sensor fusion and noise filtering taken to its absurd extreme. You're building a measurement system that must handle dynamic interference, equipment degradation, and subjects that actively sabotage the process. The challenge tests your ability to extract signal from chaos while your tools literally melt. Write the SHORTEST CODE that produces accurate measurements from completely unreliable inputs.
Take the W
- ✓ Produces measurements within 10% accuracy despite interference
- ✓ Handles sensor failure gracefully with backup methods
- ✓ Filters out obvious false readings from tantrums
Hard L
- ✗ Reports wingspan of 0 or infinity
- ✗ Crashes when equipment catches fire
- ✗ Trusts single reading without validation
Edge Cases
- ⚠ All sensors simultaneously fail (resort to manual tape measure)
- ⚠ Dragon becomes invisible (thermal imaging backup required)
- ⚠ Negative measurements (dragon flew through portal)
- ⚠ Quantum superposition (dragon in multiple places)
- ⚠ Insurance auditor arrives during feeding time chaos
Input Format:
Array of sensor objects with status flags
Expected Output:
Validated measurement with fallback handling
Example:
[{"value":2,"status":"OK"},{"value":847,"status":"INTERFERENCE"}] → {"wingspan":2.0,"method":"filtered","sensors_used":1}
Hints
- 💡 Baby dragons have consistent wingspan ratios to body length
- 💡 Flame breath creates predictable thermal gradients
- 💡 Multiple sensors agreeing within 5% indicates truth