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
      12 of 102

      Two thermometers

      Several thermometers hang in the same room. None is perfect: wobbles[i] is how much thermometer i typically misses by, a spread like the one in “How spread out?”. Write best_guess(readings, wobbles): one best estimate of the room’s temperature.

      A lab thermometer and a cheap one hang in the same room. The lab one reads 20° and is almost never more than 0.01° off; the cheap one reads 22° and is often 2° off. What’s the room’s temperature?

      each band: where the room could be, by that thermometerlab20° ± 0.01°cheap22° ± 2°20°22°24°21° is 100 of the lab thermometer’s usual misses away: it’s almost never that far offBoth readings should count, but not the same. How much should each count? ?
      Your functionbest_guess(readings, wobbles)
      readingswhat each thermometer says, in degreese.g. [20, 22, 27]
      wobbleshow much each one typically misses bye.g. [1, 1, 1]
      returnsone best estimate of the temperature
      solution.pyLoading Python
      Sign in for an AI hint
      ← Odd one outMatch score →