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.
Facts!!!
Thank you I hope this answer stays up because it's something newbies like me may not notice after figuring out this problem.
Yeah sometimes I see that the problem makers and the leaders/mod on this page have attitudes that are not the nicest... I guess it doesn't pay to be nice that's why.
Opitt has a very good hint I think
I have no idea. This kata is so weird... I feel like maybe codewars have better problems in other languages and not SQL
I think you should also allow the order by # of the item listed in the querry instead of just strictly saying "order by comma"...
bro this code is high level for such a simple kata. Much respect.
Python with its False being equal to 0 is just the worst for this problem.
This comment is hidden because it contains spoiler information about the solution
Me too :))))))))
Yeah I don't really understand this code. Apparently it works but I wouldn't say it's very readable for most people.
Best practice for that logic
Wow this solution really click in my mind! Thank you for the insightful comment.
This comment is hidden because it contains spoiler information about the solution
Thank you so much, you put it so clearly to understand, I learned something new today! Greatly appreciated!
Hi yellowboyvn,
When you set your parameter (n) to something, you are saying you want that "something" to be your default value in case the funcion is called without a value. It prevents errors.
So, if we call our function empty, it will assume the input is 0 in our case (or any value you have assigned to it).
Hope that helps!
Loading more items...