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.
@FemmeSTEMGem, your variant should not work, because
The TRUNCATE() function returns n truncated to d decimal places
So your solution returns
X.X
, but we need to get justX
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
Every thing that is hard coded or using simple functions should be faster
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
bool
checks it first. If it's false, the second part of the expression (the one afterand
) is never evaluated.Just answered you in another comment. Please use a spoiler flag when you post code, the comments are visible to everyone by default.
This comment is hidden because it contains spoiler information about the solution
If you think about it, this really is the Best Practice.
See explanation a few comments below (reply to losttheplot12)
This comment is hidden because it contains spoiler information about the solution
No, it's not. In fact, over a high number of invocations of the function, it probably actually be slower (allocation + hashing + lookup vs string comparison) The point of this isn't performance, it's convenience.
Loading more items...