You are given a positive integer
n.Let
digitSumbe the sum of the digits ofn, and letsquareSumbe the sum of the squares of the digits ofn.An integer is called good if
squareSum - digitSum >= 50.Return
trueifnis good. Otherwise, returnfalse.
1 | class Solution { |