UiPath Interview Question

How would you implement an algorithm for finding the sum of all digits in an integer?

Interview Answer

Anonymous

Nov 20, 2018

I wanted to implement a simple and somewhat cheat-y Python one-liner, but my interviewer had me take a step back and let me implement a simple program which utilizes integer division remainders and floors.