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.
I'd appreciate not getting spoiler tagged when my message contains no spoilers, thank you.
both
|
and||
are binary (accept two operands, as opposed to one, as is the case with a unary operator), and both|
and||
can operate on two booleans. no bug there.This comment is hidden because it contains spoiler information about the solution
This is probably as optimal as it can get ¯_(ツ)_/¯
I think this is better practice than parsing values directly into 'return'
Code is good, altough I don't see why you parse to int. 'number' is already paresd into int at function call.