4 kyu

Adding Big Numbers

19,746 of 34,070Becojo

Description:

We need to sum big numbers and we require your help.

Write a function that returns the sum of two numbers. The input numbers are strings and the function must return a string.

Example

add("123", "321"); -> "444"
add("11", "99");   -> "110"
add("123", "321") -> "444"
add("11", "99")   -> "110"
add("123", "321"); // returns "444"
add("11", "99");   // returns "110"
      AddBigNumbers("123", "321") => "444"
      AddBigNuimbers("11", "99")  => "110"
add("123", "321") --> "444"
add("11", "99")   --> "110"

Notes

  • The input numbers are big.
  • The input is a string of only digits
  • The numbers are positives
Mathematics
Big Integers
Algorithms

More By Author:

Check out these other kata created by Becojo

Stats:

CreatedOct 17, 2013
PublishedOct 17, 2013
Warriors Trained68437
Total Skips10331
Total Code Submissions200895
Total Times Completed34070
JavaScript Completions19746
CoffeeScript Completions50
C# Completions7228
C++ Completions3788
C Completions1447
COBOL Completions10
Java Completions2048
Lua Completions98
Total Stars1196
% of votes with a positive feedback rating86% of 3105
Total "Very Satisfied" Votes2434
Total "Somewhat Satisfied" Votes501
Total "Not Satisfied" Votes170
Ad
Contributors
  • Becojo Avatar
  • jhoffner Avatar
  • Unnamed Avatar
  • brunolm Avatar
  • kazk Avatar
  • Firefly2002 Avatar
  • Voile Avatar
  • Madjosz Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • user8436785 Avatar
  • akar-0 Avatar
  • dfhwze Avatar
  • fcr-- Avatar
  • tomatosonic Avatar
Ad