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.
Bit shift gigachad
Regex seems pretty useful here, I think I am going to look more into this.
what on earth am I reading?
Ah yes, the problem does say that. 10/10 solution then
if someone passed negative values for both m and n this wouldnt work
Seeing this solution was useful!
Don't forget to write an exception for when the vector is empty. C++ will give you the most bizzare unhelpful errors when this happens.
I did this kata in C++. I didn't have a fun time.
This comment is hidden because it contains spoiler information about the solution