can you at least provide better test
You do realize why what you are coding on is called a "computer"?
Shouldnt a b -(RPN) evaluate to a - b? Because the test cases seem to want it to be b - a
from this solution i discovered the Stack data structure brilliant and simple ;)
Nice kata !!!
So funny this kata，i tried recursive solution first，the code is so pretty but don't be excited.oops,some unlucky things happend, Maximum call stack size exceeded,i'm in a trap,so dangerous.i try many ways to solve it,finally,the light from god lead me to the right way,so easy in fact.O(∩_∩)O
The particular JS implementation ( Node ) does not allow a recursive solution ( without a hack, anyway ). You can hardly blame the kata for that. Also, what more warning do you want?
Wow, amazing task as for this level. It was very interesting.
Thank you for this kata!!!
Julia translation and fixed failing tests, added random tests to Typescript translation.
But I want to be a web developer, not a computer scientist, when did this site became a programming challenge for c.s students? why can't most of the katas have a better description that is intuitive to people who don't like maths? and this is not even basic maths, this is advanced maths.
No issue here: there is no such input in the java test suite. I don't know what you did, but for this test, the input is "5 1 2 + 4 * + 3 - 2 /".
"5 1 2 + 4 * + 3 - 2 /"
Btw, next time, tell about the language you're using.
edit: and note that there are already more than 1400 completions in java. So the odds are less than tiny that there is a problem in the tests rather than with your code. ;)
edit²: oh, I just forgot some explainations about the terminology we use on cw discourses... ;)
For input string: "+"
What does this exactly mean? And what kind of result should the program output?
As a single "+" is a sytax error to me, and it isn't a complex expression at all.
In addition, shouldWorkWithComplexExpressions isn't in the sample test, and I tried to let the program to output 0 in case of "+" but still:
For input string: "+"
Because Maths is an integral part of computer science. You do need basic maths to apprehend a lot of katas here, just acquaint yourself with basic maths and you will be good to go. Cheers!