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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It was good practice.
Ah, nice. I didn't know if this would work or not so I just assigned the min and max to variables and returned them in an array. Very clean.
I think you do not need to worry about that cuz nowadays devices are pretty powerful to worry about difference in milliseconds)
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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Best
Same, the best way remember is to keep practice & repeating. Happy coding!
Looping once isn't definitely going to be better in terms of time than looping twice. You are still going to compare for both min and max in your loop, not to mention the overhead of min/max variables and conditional statements.
This comment is hidden because it contains spoiler information about the solution
This one may be more of an 8 kyu.
Loading more items...