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.
The point of codewars is to practice your problem solving and coding skills by doing the problem yourself, without having a library do the enitre thing for you. Yes you're 100% right that a better and more convenient solution exists, but you won't learn anything about the concept itself if you don't think hard and just google a function for it instead
And about banning the library, you're right that they could've banned it, but it wasn't intended to be used, otherwise the kata would be 7 or 8 kyu instead
when i'm asked for things that should be illegal and are not, this will come to my mind hahaha
exactly, my opinion is to know solutions from external modules, but more importantly, to actually put your hands on constructing a complex versions that has all the core problem solving steps.
I feel like this is not in line with the essence of codewars. I feel it is to practice one's problem solving skills and while this includes the use of modules, I feel it excludes the use of functions meant to specifically solve said problem. Again, I feel codewars is more for the practice of skills than the application of knowledge.
its nice
I think @AndrewB31415 was suggesting that there is a different approach that doesn't require iterating through a string of the input (*see his solution). But if you use this approach then you do need to convert the input number to an iterable.
This comment is hidden because it contains spoiler information about the solution
the kata maker didn't make a test to ban it, so don't get mad over this solution being a "cheat" or "effortless", there's no reason re-doing something in python thats going to be 100x slower and not as optimized.
import microsoft
microsoft.create_windows(11)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Wow there's a lot of angry people in the comments. Seriously, this is how you code in python and we all know it. Why code something that already exists. If they didn't want the library, they could have made a test to ban it.
This comment is hidden because it contains spoiler information about the solution
Loading more items...