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.
You can use memoization to improve it!
Thank you so much for the great explanation.
This comment is hidden because it contains spoiler information about the solution
Yep! In Python, there's a way to collapse logic that involves doing actions for every element in a list called "list comprehension". You can see docs online by searching that term or referring to the following example doc: https://www.w3schools.com/python/python_lists_comprehension.asp
Hi, great solution. Sorry to ask, You have used a compound statement right?
I want to learn about this :-)
bad algorithm
it has exponential complexity: Theta(2^n)
Ah! Thanks, got it!
In the fourth test, there are not just characters there are also some punctuations which you should ignore. Please be sure that you are comparing just characters
I am passing all my test cases in the initial given test cases, but when I submit it fails the fourth test and I can't see why it is failing. Any ideas on how I can figure out why it is failing?