Ad
  • Custom User Avatar

    I didn't find this solution on SO in Python and remade it on Scala.
    I understand everything in this code except the line target += top ** 2, if someone reads this comment and understands this problem better - help me understand why this operation is performed.