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.
Ruby 3.0 enabled in this fork
I have got so good at my black crapcode magic, that I did this in the first try.
With the exception of the mistake of putting EOL at the last line.
This comment is hidden because it contains spoiler information about the solution
Python: why the heck the initial code is showing an empty list while the ouput is supposed to be a string ? Even better, the tests work with the output being a list or a string.
Means the problems is completely underspecified and not tested properly.
Also, typo:
Approved by someone, although the test suite needs some cleaning to follow DRY principle with useful debugging messages upon failure :-)
Corrected here
I think by "hung" you mean "hanged" (the verb is irregular in this case).
Normally I wouldn't bother being a pedant, but in this case "hung" means something else ;)
This could have had a more descriptive prompt. Please leave an example of expected input and output.
I had the same issue
there is actually no need to save into variables the functions in our answers to these exercises, as we're not asked to then use them as parameters in higher order functions, so we can use a function expression, rather than a function declaration (plus, especially with the concise arrow syntax, we can use functions diretly as argumemts in other functions, or define and call them at the same time as an IIFE, eg. ((n)=> {console.log(n=5);}10); that logs 15)
good shot
chatgpt (not to be offensive)
hello c++ )
I think a best practice is to always use a Named function instead of an Arrow function for easy error location and handling.
Approved
Loading more items...