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.
Finally got a top answer ass well :)
ChatGPT would easily understand that sentence and write code for you
well I guess I didnt had to put the (), kinda dont get why though!!
got the top answer ^_^
Loved it... this is plain english in coding.
the best solution by the way using ternary operator
return classmates times pages if classmates bigger 0 and pages bigger 0 else 0
imagine you could write the code like this :D
Nice one liner
Wow, what the heck, this is almost an intelligible English sentence...
do not use return at the end the method... Ruby will always return the last line of code.
Can we see the tests?
Implicit return in Ruby eliminates the need for the explicit return.