Can you tell me how to do it C++?
I did this question in python
hello @akash_281
the idea is to use array (because we dont have any datatype to store very big number).
How to multiply a number ‘x’ with the number stored in res[]?
The idea is to use simple school mathematics. We one by one multiply x with every digit of res[]. The important point to note here is digits are multiplied from rightmost digit to leftmost digit. If we store digits in same order in res[], then it becomes difficult to update res[] without extra space. That is why res[] is maintained in reverse way, i.e., digits from right to left are stored.
this is the main idea behind whole program.