Recursive Digit Sum

  • + 0 comments

    Finally solved this one in Java.

    What was tripping me up was some of the tests use really long strings and my first (few) solution timed out.

    My working hack was to test if the input string was longer than an integer. If not run normally, and if so, break the string into integer sized bites...

    it passes now but could be rewritten to be shorter likely.