Given the array-form A of a non-negative integer X, return the array-form of the integer X+K.
Click here
Reverse array, and treat K as carry, and add digit by digit. Extend array if needed. O(n) time, O(n) space.Run make to run python and Swift files.