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

Stats:

CreatedJul 13, 2017
PublishedJul 13, 2017
Warriors Trained83420
Total Skips4751
Total Code Submissions213656
Total Times Completed61714
JavaScript Completions29339
Python Completions21855
Haskell Completions477
Ruby Completions1111
Crystal Completions18
CoffeeScript Completions25
C++ Completions4903
Swift Completions1909
C# Completions1981
C Completions580
COBOL Completions24
Scala Completions100
Julia Completions17
TypeScript Completions225
Java Completions437
Total Stars478
% of votes with a positive feedback rating92% of 5071
Total "Very Satisfied" Votes4320
Total "Somewhat Satisfied" Votes643
Total "Not Satisfied" Votes108
Total Rank Assessments59
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • K-Calderon-ASC Avatar
  • ZozoFouchtra Avatar
  • anter69 Avatar
  • shaddyjr Avatar
  • Chrono79 Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • FArekkusu Avatar
  • a.kozhanov Avatar
  • monadius Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • alex3287 Avatar
  • trashy_incel Avatar
  • user8436785 Avatar
  • MikChan Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • xFeaRDom Avatar
  • KayleighWasTaken Avatar
  • Emilio.CV Avatar
  • Cameron637 Avatar
Ad