• + 1 comment

    Could you please explain the approach and why we are doing: d[j + 1] += d[j] / 10; d[j] %= 10;