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.
yes, the solution typically requires a somewhat large amount of code compared to other katas. my reference JS solution is around 100 lines long. i think you are writing too much code because your logic is to start from the pieces and stop at the king, but the other way around is easier (requires less code).
()
has special meaning in what you're using.try this one:
"abc(def)B4B(jkl)mno"
console.log(s)
?Your regular expression is wrong, you can test it here: https://regex101.com/ make sure you select ECMAScript in flavor at the left.
Hi eeNNdd11, I agree that description can be better but still this is not a reason to be rude. If you finished the kata you will see "How satisfied are you with this kata?" - you can choose. My personal vote is 'somewhat'. Chrono79 just pointed you to some already posted answers and it is little bit strange that you argue with him about next g964 kata.
This isn't my kata.
Read solo-leveling's or Psychemaster's post below.