Question: Alice and Bob were given two numbers as strings. The reason for the numbers to be taken as strings was that they were very large
Alice and Bob were given two numbers as strings. The reason for the numbers to be taken as strings was that they were very large which may not fit in a long
long int. Their task was to find the sum of these two numbers in the most optimized way possible. Though Allce came up with the pseudocode, Bob was unsure
about its time complexity. Can you help them to find the time complexity of the given pseudocode?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
