How to find the sum of squares of individual digits of a number without using looping statements?(to reduce time complexity) | SoloLearn: Learn to code for FREE!

how large is your number?
if it is a 10 digit number, it can be looped 10 times and the square of each digit is added to variable.
I can't think of a better solution in terms of time complexity.