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.
whenever you get a regex in a task or in work, try working through it with an app like regex101 (or any other alternative). It neatly shows the result of your regex, ou can input test strings etc. Great stuff for learning regex. Just remember to always select JavaScript (or EcmaScript) interpreter as there are subtle differences
Why is this even?
8 kyu kata represent a beginner level. At this level the kata is only challenging for users new to programming. This includes programming tasks such as:
Defining a simple function (i.e. hello world)
Basic variable assignments
Fixing basic syntax issues
Trivial algorithms such as basic if/else statements
This comment is hidden because it contains spoiler information about the solution
This kata is way too simple, it barely even counts as an 8kyu assignment since you could argue it teaches the most basic syntax
Great and interesting Kata. I suggest taking this one to paper before coding :)
Just for some clarification, I noticed a pattern where you can just return the difference between number of same answers and tom's wrong and correct answers respectively :)
Although the least elegant solution, this one seems like best practice since the array approaches more convoluted
Nice, I went with switch/case but this solution with an array that is dependent on the mod is much more elegant, although quite nuanced :P