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.
Oh, I totally forgot that range can do this.
I need this one explained to me lol Cause im not getting that at all
I need this one explained to me lol Cause im not getting that at all
It certainly looks elegant and functional, but I dug deeper into how Sequence works and how effective they are for small sets or sequences. As a result, using the measureTimeMillis function, I found that executing generateSequence with subsequent processing takes from 5 to 13 seconds. While if you use "do{}while(...)" or just "while" it takes 0 seconds. From this we can conclude that although Sequence is very concise and saves us from mutability and temporary variables, we still need to be careful when using them for such tasks.
I think this is clever but definitely not best practice.
no way
Double is used for slicing not indexing
Elementary math lol. good times.
Didn't know you can put if statements like that. Nice!
wow!
молодец
genius
choosing
n
instead ofi
(or similar) variable inside therange(n)
is not only a bad practice but is super confusingMathematics!!!!!!!!!!!!
makes that as easy as it should be :)
Lmao. I'm so stupid.
Yeah could have simplified even more like that, to me kata 7 you could make it straightforward and easy to read. If you interested on golf solution, yes, we could use this or even better came out with an equation for the number lines.
Anyways, thanks for the note, Hope keep it here for future reference.
Loading more items...