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.
Make a kata where your task is to write a function that draws you this
Unbelievable lol
@benjaminzwhite could you please explain why the expected output for >--< is 1 in one test and 2 in another? Per your logic it will be 2 steps and I'm stuck on this for days because the tests are inconsistent!
Can someone PLEASE explain this? Am I tripping or the tests are incorrect? Please see attachement: https://i.imgur.com/A3W5SON.png
What is ">--<" supposed to return? In one test it's 1 and in another is 2?!?
I've been on this question on and off for three days! ðŸ˜
I'll be honest, I did not expect this to pass because it's MOST definitely not a fool-proof. Even something as simple as "forums.apple.com" will return "forums" instead of "apple". The test needs to expand WAY far for real world application.
This madlad even imported string just to rub it in your face
You really manually made that hashmap... lol
This comment is hidden because it contains spoiler information about the solution
You can always count on someone to come up with a one-liner lol
This comment is hidden because it contains spoiler information about the solution
When you want to just waste your space complexity
You wouldn't need .strip() to fulfill this question but it's best to have it in case if they include a ' ' in the beginning or end of the list.