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.
obvious, but hard. Writing in in an object oriented approach is more accessible to most programmers I guess. For me too, I'd die trying to find a correct recursive algorithm for this :P
@epicshaner If you did with JS or TS, you can check mine. I'm learning clean code stuff and did this kata for training so it should be quite easy to understand.
I love that someone actually gave that "Best Practices".
I understand nothing
:)))
only if length of array was not 4 :D
just because you can, and others can learn the features of JS (or other languages).
In real work you shouldnt make everything one-liners, you should make code as clear to read for others as possible, at the same time not making it too long. But here we are for the purpose of training and learning language.
In Python 3 the division of two integers (int / int) results in a float. And floats cannot represent big integers exactly.
If you need the exact results you can use integer division (int // int) and integer modulus (int % int) instead.
got the same problem... but not able to solve. Can you please elaborate your explaination?
it's not a "make the shortest variable names possible" contest. Call your variables in a way so that others can intuitively know what is inside them.
Also, floor division (integer division) is faster than true division
yeah, you're right. Thanks :)
Because of imprecisions, you could get 54.9999999999 which is not equal to 55.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
im at 128... :D
Loading more items...