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.
When dealing with those different versions of the
jmp
instruction (jmp
,jne
, etc.), I didn't want to waste time writing repetitive code. So I combined all of them into one class with different jmp conditions. You can definitely create different casses for them tho.Input validation is like doing some actual work.
I come here to avoid that.
No-no, keep it out of the kata, plz! ;)
Thanks for the feedback! In my opinion input validation is pretty dull so I decided not to include it. I wouldn't mind adding it if everyone thought it was necessary!
yes, you're right, it stops checking the condition after AND. The topic is called 'short circuiting'.
No it won't because 'and' fails even if one condition fails
This comment is hidden because it contains spoiler information about the solution