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.
You need to define your own setters and getters instead of utilizing the auto properties.
Some reading
psmilliorn, I think I made the mistake of debugging your JS solution in TS, hence why it seemed you hadn't exported your function. My apologies.
OP solved it, closing
everything works actually fine. I guess you entered the trainer in TS long ago (meaning, you're currently facing an outdated version of the example tests) => just reset the trainer.
This is a problem with your solution; you've forgotten to export your function. Please use the
issue
tag for issues with the kata itself, and thequestion
tag if you need to ask for help solving it.Backup your code, click Reset, paste it and try again.
Check it now.
That's because
chai.config.truncateThreshold=0;
is missing.no. Don't mutate the input, it's bad practice.
This comment is hidden because it contains spoiler information about the solution
Same question.
solved by OP, closing
This comment is hidden because it contains spoiler information about the solution
fixed
assert_equivalent(vector<string> {"ab", "ba"}, permutations("ba"));
There's nothing wrong other than your solution. Really. It returns too few permutations, it misses some. How many permutations does it return for input
"bac"
? How many should it return?Loading more items...