Draft
A huge number
Description:
You are given two huge numbers. Your job is to add them together.
Input: two null terminated arrays of size 40 + the null terminator.
Output: a null terminated array of size 40 + the null terminator.
Details: the array contains numbers in ASCII format making up the hudge number. If the input would look like this n1 = "0000000000000000000000000000001234567890" and n2 = "0000000000000000000000000000001234567890" the output would be n = "0000000000000000000000000000002469135780"
Hint: the numbers are in ascii format and to convert them to normal numbers you need to do this: n[i] -= '0'; and n[i] += '0'; to convert them back
Similar Kata:
Stats:
Created | Sep 22, 2018 |
Warriors Trained | 109 |
Total Skips | 14 |
Total Code Submissions | 60 |
Total Times Completed | 24 |
C Completions | 24 |
Total Stars | 0 |
% of votes with a positive feedback rating | 60% of 21 |
Total "Very Satisfied" Votes | 10 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 21 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |