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.
This comment is hidden because it contains spoiler information about the solution
done o7
Added some basic tests for your first 2 recs, and some advanced tests based on your third (a few different usages of units as substrings)
Thanks! Let me know if you spot any other cases that should be tested
Working on fixing up & adding some tests to JS, have some questions for you.
Updated those - thanks for pointing that out! I've turned the examples language-agnostic and added that space.
(That spacing was a leftover from a previous much more complicated version of this kata)
Updated, somehow those didn't get copied over / saved. Should be there now
Thanks for the catch! Fixed 👍
Translation for TypeScript - basically a copy/paste of JS version with the types added
Because I missed those while removing console.logs before publishing 🤦♂️
Fixed, thanks for the catch
Typescript translation - copied JS, added type annotations
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 ;)
Suggest adding test cases for the literal strings "null", "nil", "none", etc; I see at least one solution that improperly returns that these are not alphanumeric (they are)
Description should now be more clear
Updated random tests, let me know if you spot any more issues with those!
The description has a section on this:
Is there anything missing or unclear about this description? Perhaps an example will help?
Loading more items...