P15376 [GeeksforGeeks] Multiply by 111820
普及-
题目描述

Given a number in the form of a string of length N . You have to multiply the given number by 11.
Example 1:
Input:
number = "8"
Output: 88
Explanation: 811 = 88
​Example 2:
Input:
number = "12"
Output: 132
Explanation: 12
11 = 132
Your Task:
You don't need to read input or print anything. Your task is to complete the function multiplyby11() which accepts a string as input parameter and returns a string which should be the multiplication of number by 11.
Expected Time Complexity: O(N).
Expected Auxiliary Space: O(N).

Constraints:
1<= N <=10^{6}

输入格式

见题面

输出格式

见题面

样例输入
number = "8"
样例输出
88