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.
Good practice is always based on use-case. In this case, the function has a simple purpose.to sort the input array. Since the intent is straightforward, there’s no readability issue. Additionally, if we're dealing with a potentially large array, our approach is to optimize for performance and avoiding unnecessary memory allocation. What is "good practice" is always based on context.
The point is that it's bad practice to mutate input. Undocumented side effects like that are hell on readability.
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
No random tests.
nice one
Thanks, done
Please use proper formatting. Code should be surrounded by code blocks:
```
code
code
code
```
Yay more Suzuki! \m/