Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Since a unary minus operator can be used when no preceding mathematical operator was provided, e.g. "-1 -1" and "-1 -(1)" both resolve to -2, it follows that if the previous operand is the result of a bracket-delimited expression the same should occur, i.e. "(-1) -1" or "(-1) -(1)" should also both resolve to -2, however this case is not covered in the test suite.
it's not a completely ridiculous solution though.
This comment is hidden because it contains spoiler information about the solution
Challenging kata, it was my first 2kyu kata. :D
Ok i just needed to rename all open_ variable. Ok i did it, you could delete it my comment
oh yes i corrected it, sorry.
now the tests are fine, but i have the issue You can't use open, open, open: ['open', 'open', 'open'] should equal []
And i do not use open funciton
First of all, one of the test is wrong,
("10- 2- -5", 13),
should be equal to 3 : 10 - 7 and not 13
brain f**k :P ?
mocha + chai
should be enabledMissing edge cases like this which will invalidate a lot of solutions (including top-voted one)
Description does not mention how to handle cases when the key is not found in the given object
This comment is hidden because it contains spoiler information about the solution
What is your point exactly, did the chicken lay an egg or the egg produce a chicken?
I asked chatGPT to solve this kata, and this function with regular expression is the answer.
Loading more items...