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've responded to a comment from 6 years ago.
BC stands for bash calculator as far as I know.Bash on its own is not capable of floating point aritmetics. Have I claimed that my sollution was clever or best practice? The point is to solve things using the given language, OP is lucky test container comes witn python interpreter installed. We wouldn’t have this discussion if it wasn’t.
How using python in shell excercise is supposed to be clever?
Suposedly smart code, but what is the actual point? What if the input is -lt 0 or a something other than integer?
This comment is hidden because it contains spoiler information about the solution
The triumph of form over content :) I'm often shocked when looking on the sollutions. Python community will do everything to write the shortest code possible, even if it is completely unreadable and inneficient. I've noticed that I've started doing the same...
It makes no sense to sort the set, dictionaries in python are unordered.
This code is hurting my eyes. The purpose of short "if" is to use it when its "short" to make it readable. I have no idea why six people considered this abomination "Best practices". How on earth unredable code can be best practices. What is so clever about unridable code? If you want to make it compact and one line the go with Python :)
I'm simple programmer, I see recursion I upvote! :)
It is indeed insufficient. I think it is a problem of codewars that people think short == clever.
Not really. It is to much code for what it is. It is also easier to make mistake this way. Reserving variable isn't memory efficient either.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
So u basically icremented n once and p once and then u used themin last factorial, i think it's clever.
This comment is hidden because it contains spoiler information about the solution
Loading more items...