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: 8*11 = 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}

Source: geeksforgeeks | Difficulty: EASY
Tags: String algorithms

Data structures

Mathematics

Starter code: #User function Template for python3
class Solution:
    def multiplyby11(self, number):
        # code here

Solutions:
class Solution:

	def multiplyby11(self, number):
		return int(number) * 11


class Solution:

	def multiplyby11(self, number):
		n = int(number)
		nn = n * 11
		return nn


class Solution:

	def multiplyby11(self, n):
		t = int(n) * 11
		return str(t)


class Solution:

	def multiplyby11(self, n):
		return int(n) * 11


class Solution:

	def multiplyby11(self, num):
		return int(num) * 11


class Solution:

	def multiplyby11(self, number):
		res = 11
		num = int(number)
		return res * num


class Solution:

	def multiplyby11(self, number):
		n = int(number)
		a = n * 11
		return a


class Solution:

	def multiplyby11(self, number):
		n = int(number)
		if n == 0:
			return '00'
		return str(n * 11)


class Solution:

	def multiplyby11(self, number):
		x = int(number)
		y = x * 11
		return y


class Solution:

	def multiplyby11(self, number):
		n = int(number)
		res = n * 11
		return res


class Solution:

	def multiplyby11(self, number):
		ashad = int(number)
		jamal = ashad * 11
		return jamal


class Solution:

	def multiplyby11(self, n):
		n = int(n)
		a = 11 * n
		a = str(a)
		return a


class Solution:

	def multiplyby11(self, number):
		z = int(number)
		a = z * 11
		return a


class Solution:

	def multiplyby11(self, number):
		ans = int(number) * 11
		return str(ans)


class Solution:

	def multiplyby11(self, number):
		answer = int(number) * 11
		return str(answer)


class Solution:

	def multiplyby11(self, number):
		a = int(number) * 11
		return str(a)


class Solution:

	def multiplyby11(self, number):
		num = int(number)
		x = num * 11
		return x