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

      Fair share

      Write typical(values): one number that stands for a whole list of numbers. No formula given. Pick anything that seems reasonable and run it.

      Five people rated a movie. Your function gets all five ratings and hands back one rating for the whole movie.

      the ratings★★★★★5★★★★★4★★★★★2★★★★★5★★★★★4typical(…)0 of 5 inone rating for the movie

      which number should come out? that’s for you to decide

      Your functiontypical(values)
      valuesa list of numberse.g. [5, 5, 5, 5]
      returnsone number that stands for the whole list
      solution.pyLoading Python
      Sign in for an AI hint
      The billionaire →