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.
rejected by someone.
Already approved by someone
Expressions that include unary minus like
1 * -(-1)
nor23 - (-15 + 7)
are not tested, so the EBNF grammar forfactor
andnumber
seem to be correct. But description still needs to explicity mention how to handle floating point divisions and the input range.People who are downvoting this comment are insulting themselves..
This is literally 3rd grade math..
Fixed.
Should be fixed.
Tests updated in fork by @cwps
You could make a custom state machine. It's going to be aloooooooot of boilerplate code though. EDIT: actually, you could use a bitmask for the current state and decide depending on current active bit, and next char whether to proceed to next bit or go into invalid state. EDIT again, the task is about using a REGEX, so forget what I just said.
fixed by your fork
Approved
Thank you for fixing the C++ issue. Approved.
fixed
Please read the discussion below your post. There are a lot of languages, some that I don't work with, so, if you want something changed, please, create a fork.
Yes, that would be nice. Thanks.
Thanks for the suggestions, but this was five months ago and I don't have much time right now so I am unlikely to touch this anytime soon. The only point of this fork was to quickly introduce truly random tests and i have forgotten about it since.
Loading more items...