4 kyu
Sum Strings as Numbers
26,180 of 45,282nicknovitski
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 | 91825 |
Total Skips | 13160 |
Total Code Submissions | 725309 |
Total Times Completed | 45282 |
JavaScript Completions | 26180 |
C# Completions | 6961 |
PHP Completions | 1831 |
C++ Completions | 3434 |
C Completions | 974 |
Java Completions | 1723 |
Lua Completions | 92 |
Python Completions | 4861 |
Total Stars | 2074 |
% of votes with a positive feedback rating | 83% of 4516 |
Total "Very Satisfied" Votes | 3334 |
Total "Somewhat Satisfied" Votes | 803 |
Total "Not Satisfied" Votes | 379 |