8 kyu
Sum The Strings
29,143 of 60,951K-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 | 82515 |
Total Skips | 4676 |
Total Code Submissions | 211549 |
Total Times Completed | 60951 |
JavaScript Completions | 29143 |
Python Completions | 21583 |
Haskell Completions | 475 |
Ruby Completions | 1102 |
Crystal Completions | 18 |
CoffeeScript Completions | 25 |
C++ Completions | 4768 |
Swift Completions | 1889 |
C# Completions | 1946 |
C Completions | 563 |
COBOL Completions | 24 |
Scala Completions | 98 |
Julia Completions | 17 |
TypeScript Completions | 197 |
Java Completions | 368 |
Total Stars | 471 |
% of votes with a positive feedback rating | 92% of 5040 |
Total "Very Satisfied" Votes | 4295 |
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 |