You need to learn data structures, specifically LinkedList. Look for a course online, choosing a data structure to solve a problem is usually the most crucial step :)
I guess it is way more efficient than mine, since my is 14 lines and has 4 conditions.
But in rare ocasions that website domain ends with 'www', mine works. Mine also can work with subdomains if you change the index in the return statement from 0 to -2
tests for JS dont work
I have no idea what any of it means, but good job
I have no clue how this "re" thing works, but I'm pretty sure I need to
Please don't spoil solutions, thanks. Take a pencil and a paper and check for this, it's pure logic.
You need to learn data structures, specifically LinkedList. Look for a course online, choosing a data structure to solve a problem is usually the most crucial step :)
This comment is hidden because it contains spoiler information about the solution
Try another kata ;-)
This comment is hidden because it contains spoiler information about the solution
I guess it is way more efficient than mine, since my is 14 lines and has 4 conditions.
But in rare ocasions that website domain ends with 'www', mine works. Mine also can work with subdomains if you change the index in the return statement from 0 to -2