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.
4 years later, Node 18. is the one and only default version, closing this one
Appreciate it, thankyou!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Those are two different cases and you should read this note:
There is your problem.
input '888a 999a'
Visual Studio Code (highest possible js version)
sort
withlocaleCompare
=> 888a 999aJS version 8 (highest possible js version for this very kata) => 999a 888a
I was wondering about this.. the problem describes this corner case but doesnt test for it when you submit? This code doesnt appear to handle that case.
Not an issue. Your logic is incorrect.
@rowcased It's not about code not working on different versions, it's that the TESTS themselves aren't functional for specific one (because they're written poorly, and node 10 says no to that). Granted, there's no issues when attempting all test cases, this is a minor issue, but I'd rather see 2 lines added than see more issues raised from people who don't know how to deal with errors like this.
With that said, I do agree with what you're saying in principle.
I'm not so sure it is an issue? Doesn't seem fair to offer multiple nodes and expect a valid solution in one to work in all/others. It reminds me of criticism of functional Python 2 code where people say, "yeah, but this doesn't work in Python 3", whereas in many cases Python 3 had not been even been enabled at the time of the solving. Anyway, just my thoughts.
JavaScript Completions 2106
This is only node 10 issue, and it's only for the sample test. If you hit submit, it works fine. (try it with node 8 and it's gonna work)
It's because node 10 runner uses test framework that requires
describe
andit
blocks for tests (as far as I understand)But yes, it is an issue :/
You're dealing with BANKNOTES, you can't just sum up all the money and subtract whatever you want from it.
start by reeading all the comments, there's been a lot of discussion on this kata lately, and there's a chance you will get some answers there
Try running through some very simple examples by hand. What information did you need? How did you calculate each move?
If you're stuck, consider a short word like "cab" that comes from the first 3 letters. How would you write code for just combinations of "abc"?
Loading more items...