4 kyu
Sum Strings as Numbers
26,398 of 45,945nicknovitski
Description:
Given the string representations of two integers, return the string representation of the sum of those integers.
For example:
sumStrings('1','2') // => '3'
A string representation of an integer will contain no characters besides the ten numerals "0" to "9".
I have removed the use of BigInteger
and BigDecimal
in java
Python: your solution need to work with huge numbers (about a milion digits), converting to int will not work.
Strings
Big Integers
Algorithms
Similar Kata:
Stats:
Created | Mar 15, 2014 |
Published | Mar 15, 2014 |
Warriors Trained | 93070 |
Total Skips | 13329 |
Total Code Submissions | 732833 |
Total Times Completed | 45945 |
JavaScript Completions | 26398 |
C# Completions | 7013 |
PHP Completions | 1845 |
C++ Completions | 3491 |
C Completions | 994 |
Java Completions | 1805 |
Lua Completions | 99 |
Python Completions | 5103 |
Total Stars | 2090 |
% of votes with a positive feedback rating | 83% of 4553 |
Total "Very Satisfied" Votes | 3360 |
Total "Somewhat Satisfied" Votes | 810 |
Total "Not Satisfied" Votes | 383 |