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.
Not a big deal as long as edge cases for same total sales are tested
Your code does not comply to below
Nope, that is the assertion messages, whereby the LHS array indicates your output whilst the RHS indicates the correct one (expected).
Not a kata issue though, your code does not comply to below
Not a kata issue, your code does not comply to below
Not a kata issue, your code does not comply to below
Good Kata, nice work! I think updating the Node version would be a good idea. The JS sort method has been stable since 2019 and that should be reflected in the Kata.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ruby translation kumited:
https://www.codewars.com/kumite/5e6a5366f43e260015dbf842?sel=5e6a5366f43e260015dbf842
I think sorting is too costly for this problem. Am I wrong?
This comment is hidden because it contains spoiler information about the solution
No reason behind. But Javascript does have a Issue with the sorting algorithm if revenue is the same. so we included it into the Testcases.
@fnbro why make up new fixed tests cases rather than use the same ones from the Python translation? There's no point in test suite disparity between the two languages.
Loading more items...