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.
Was aiming to not sort or copy the given vectors.
Could someone help understand this solution better?
Create a simple calculator that given a string of operators (), +, -, *, / and numbers separated by spaces returns the value of that expression
I assumed the "()" operations are brackets as per BODMAS. Turns out the tests don't even have any bracketed expressions. Wasted a lot of time figuring out the brackets part.
For the python version there seems to be an issue with imports. I try to "import string" and I get:
AttributeError: 'NoneType' object has no attribute 'digits'
Turns out the imported module has turned to None
Something weird
Incidentally this kata has the same issue: https://www.codewars.com/kata/5235c913397cbf2508000048/
Maybe I'm doing something wrong?
For the python version there seems to be an issue with imports. I try to "import string" and I get:
AttributeError: 'NoneType' object has no attribute 'digits'
Turns out the imported module has turned to None
Something weird
This comment is hidden because it contains spoiler information about the solution