7 kyu

Basic Math (Add or Subtract)

2,684 of 6,700nza

Description:

In this kata, you will do addition and subtraction on a given string. The return value must be also a string.

Note: the input will not be empty.

Examples

"1plus2plus3plus4"  --> "10"
"1plus2plus3minus4" -->  "2"
Strings
Fundamentals

Stats:

CreatedOct 21, 2016
PublishedOct 21, 2016
Warriors Trained13531
Total Skips426
Total Code Submissions29949
Total Times Completed6700
Ruby Completions310
JavaScript Completions3246
Python Completions2684
C++ Completions282
Haskell Completions54
C Completions119
NASM Completions7
C# Completions188
Lua Completions7
Total Stars159
% of votes with a positive feedback rating90% of 1081
Total "Very Satisfied" Votes897
Total "Somewhat Satisfied" Votes160
Total "Not Satisfied" Votes24
Total Rank Assessments14
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • nza Avatar
  • anter69 Avatar
  • JohanWiltink Avatar
  • tachyonlabs Avatar
  • Blind4Basics Avatar
  • plasticbottle Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • uniapi Avatar
  • smokinhiro Avatar
  • Craipes Avatar
  • Just4FunCoder Avatar
  • metatable Avatar
  • saudiGuy Avatar
Ad