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.
I totally agree. There is also another kata which suffers from this: Matrix Determinant (4 kyu).
I was probably a bit harsh, but at the time I was frustrated. I'd spent countless hours writing a working solution, all the while contemplating pasting in the answer, but resisting, only to see several offerings with hard coded results.
But anyway, who am I to judge?
judging by the date of the solution, I was just learning codewars to use codewars. Nowadays, I wouldnt attempt a solution like this because it's not in the spirit of the problem. However, because of the simplicity of the test cases, I was able to complete the Kata without learning the point being driven by the prompt.
I sleep very well, most nights, thank you for asking!
How can you sleep at night posting something like that? What is the point honestly?
Duplicate:
https://www.codewars.com/kata/51c89385ee245d7ddf000001
https://www.codewars.com/kata/5302f383be2a91e4d70002c6
I hate this...
Can't agree more
Best of luck!
I was working on a timed coding challenge for a job today, less than 24 hours after completing this kata. The challenge involved finding permutations and combinations. While I did it the "hard way" to complete this challenge, for the time crunched interview, I went straight to itertools!
This comment is hidden because it contains spoiler information about the solution
Learn how to read code before doing this kind of statement just after doing that one on another solution: you're basically saying that the SAME approach is bad and then good... (btw: using the dedicated module but not to use it in the simplest way... how could it be better???) Choose your side. Do it wisely. Or don't comment.
By the way, the present solution is absolutely awful and not at all pythonic. The other one, is...
I really like this approach. Very pythonic for a difficult algorithm!!!
This comment is hidden because it contains spoiler information about the solution
I believe there should be an itertools restriction on this code, being 4kyu. Using tools available is definitely an important skill as a coder, but is not in the spirit of this 4 kyu challenge. I was aware of itertools before starting this code, but I really wanted to challenge myself, which is why I made the effort to code without the library.
I wish there was a way to give a thumbs down to the code.
The funny thing about this solution causing contraversy is that the poster of this solution probably only wanted to "level up", and not really learn. Leveling up is certainly fun, and is what got me addicted to programming on this site. Ironically, all of these comments are actually improving this coders ranking on the site.
I'd appreciate comments here to explain the regex, but I love the strategy
Loading more items...