4 kyu
Sum Strings as Numbers
26,107 of 45,071nicknovitski
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 | 91358 |
Total Skips | 13106 |
Total Code Submissions | 722564 |
Total Times Completed | 45071 |
JavaScript Completions | 26107 |
C# Completions | 6950 |
PHP Completions | 1828 |
C++ Completions | 3418 |
C Completions | 968 |
Java Completions | 1696 |
Lua Completions | 90 |
Python Completions | 4775 |
Total Stars | 2067 |
% of votes with a positive feedback rating | 83% of 4509 |
Total "Very Satisfied" Votes | 3330 |
Total "Somewhat Satisfied" Votes | 802 |
Total "Not Satisfied" Votes | 377 |