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
      84 of 88

      Listen to your friends

      A few people rate a film from 0 to 10, and each one hears what their friends think. Write update(opinions, friends): everyone’s new opinion after hearing their friends. friends[i] lists the positions of person i’s friends. Your own opinion counts as one voice too.

      opinions
      AnaBenCaiDeeEve
      284106
      friends
      Ana: Ben, Cai · Ben: Ana · Cai: Ana, Dee, Eve · Dee: Cai · Eve: Cai
      solution.pyLoading Python
      ← Grade on a curveFade to static →