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.
What happens to the result of the add, sub, mul, and div operations? Specifically: Is the result pushed onto the stack as a new top value, or does it change the value of the current top value on the stack? This isn't clear from the description or the example.
This comment is hidden because it contains spoiler information about the solution
It was not mentioned that in JS, the integer division uses bitwise operator instead of
Math.floor
orMath.trunc
.It seems that the Python and JavaScript versions are unequal. The Python version is more difficult because it requires the possibility to re-use intermediate results. My submitted JavaScript solution would not pass the
Immutability Check
fixed test from Python.Julia translation
in the example of the description, why the commend isn't
aBA
? Looks to me like shift is still down, tho.This comment is hidden because it contains spoiler information about the solution
Are you sure prefix operators have associativity?
How?
What would the expected value be for, say
(start)(push)(5)(end)(start)(push)(3)(end)
?This is not explained in the description or the example tests.
Hi,
Unfortunately, you just did a duplicate of several other katas. You should unpublish it.
(here is one of them, adding perf requirements. But there are others in the database)
cheers
(edit: 'realized the one in the link is'nt the exact same outside of the perf aspect, but there are others that are exact duplicates of yours)
The
Java
assertEquals args are back-to-front in the Sample tests.