Back to questions

Another One Python Interview Question

Another One

Python Interview Question

We're trying to create a digital clone of DJ Khaled. No fancy AI or alorithms needed.

Just take a number and add another one:

More specifically, you are given an integer array , where each is the ith digit of positive whole number. It is ordered from most significant to least significant digit.

Return an array of digits of the number after adding another one to the input.

Example #1

Input:

Output:

Example #2

Input:

Output:

Difficulty

Easy

Input

Python

Output