8 kyu
Sum The Strings
29,195 of 61,139K-Calderon-ASC
Description:
Create a function that takes 2 integers in form of a string as an input, and outputs the sum (also as a string):
Example: (Input1, Input2 -->Output)
"4", "5" --> "9"
"34", "5" --> "39"
"", "" --> "0"
"2", "" --> "2"
"-5", "3" --> "-2"
Notes:
If either input is an empty string, consider it as zero.
Inputs and the expected output will never exceed the signed 32-bit integer limit (
2^31 - 1
)
Fundamentals
Similar Kata:
Stats:
Created | Jul 13, 2017 |
Published | Jul 13, 2017 |
Warriors Trained | 82732 |
Total Skips | 4696 |
Total Code Submissions | 212074 |
Total Times Completed | 61139 |
JavaScript Completions | 29195 |
Python Completions | 21649 |
Haskell Completions | 476 |
Ruby Completions | 1102 |
Crystal Completions | 18 |
CoffeeScript Completions | 25 |
C++ Completions | 4792 |
Swift Completions | 1897 |
C# Completions | 1955 |
C Completions | 571 |
COBOL Completions | 24 |
Scala Completions | 99 |
Julia Completions | 17 |
TypeScript Completions | 201 |
Java Completions | 388 |
Total Stars | 476 |
% of votes with a positive feedback rating | 92% of 5043 |
Total "Very Satisfied" Votes | 4298 |
Total "Somewhat Satisfied" Votes | 638 |
Total "Not Satisfied" Votes | 107 |
Total Rank Assessments | 59 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |