about | help | code help+videos | done | prefs |
Write a method with a string input parameter consisting of integers strung together with "+" and "-" signs. The only characters present in the string will be numeric digits and these two signs mentioned above. Return the integer result obtained by performing all of the indicated operations. runningTotal("-655+241-825-492+2498") → 767 runningTotal("4+17+200+40+18+30-400") → -91 runningTotal("-14") → -14 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 440
Copyright Nick Parlante 2017 - privacy