Spooky Sale: 10% off Premium yearly · $118.80 for the first year · until Nov 6Get it

Deep-ML
Learn
Problems1,200+ hands-on ML problemsLearning PathA guided route through the fundamentalsLabsInteractive labs on real techniquesProjectsBuild a GPT, an RL agent, CUDA kernelsCollectionsCurated problem sets and videosMathPen-and-paper math for MLIntuitionInvent the idea behind the formula yourselfPlaylistsYour own problem lists, shareableStudy AssistantAn AI teacher that knows your progress
Interview Prep
Compete
ContestsFresh problem sets, ranked liveLeaderboardWhere you stand, globallyBuddiesSolve with a friend: streaks, a weekly board, chat
Discuss
Deep-Path
Premium
      Intuition
      11 of 102

      Odd one out

      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.

      the broken sensor reads
      eight sensors: 20, 21, 19, 20, 22, 21, 20, 9514.4°C99.6°Coddness of 95?
      click a reading to see its gap from the averagehow odd is the broken reading? that’s oddness(value, readings)
      Your functionoddness(value, readings)
      valueone reading to judgee.g. 20
      readingsevery sensor's reading, value includede.g. [18, 20, 22]
      returnshow unusual value is (0 = typical)
      solution.pyLoading Python
      Sign in for an AI hint
      ← How sure is the average?Two thermometers →