8 kyu
Sum The Strings
21,855 of 61,714K-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 | 83420 |
Total Skips | 4751 |
Total Code Submissions | 213656 |
Total Times Completed | 61714 |
JavaScript Completions | 29339 |
Python Completions | 21855 |
Haskell Completions | 477 |
Ruby Completions | 1111 |
Crystal Completions | 18 |
CoffeeScript Completions | 25 |
C++ Completions | 4903 |
Swift Completions | 1909 |
C# Completions | 1981 |
C Completions | 580 |
COBOL Completions | 24 |
Scala Completions | 100 |
Julia Completions | 17 |
TypeScript Completions | 225 |
Java Completions | 437 |
Total Stars | 478 |
% of votes with a positive feedback rating | 92% of 5071 |
Total "Very Satisfied" Votes | 4320 |
Total "Somewhat Satisfied" Votes | 643 |
Total "Not Satisfied" Votes | 108 |
Total Rank Assessments | 59 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |