Loading Company...
This is a verified interview question from Netradyne. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Digit Sum" covers key patterns like Other.
"You are given an integer as a string s. In each iteration, you need to take the sum of the digits of the number with have their index divisible by k. Treat the obtained number as the original string and repeat this untill you obtain a simple digit sum. Return the same."
Join thousands of developers practicing for Netradyne.