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.
Me too. Was a good Kata over all and i had a lot of fun.
I enjoyed the comments :)
No worries. Sandro is the name of one of the playable necromancer characters in the game ;P https://vignette.wikia.nocookie.net/mightandmagic/images/5/52/HeroSandroII.jpg/revision/latest?cb=20100308151810&path-prefix=en
Thank you very much @FireFly2002 and @GavDawg!
I also saw it after you mentioned the tuple - I was simply to hasty and overlooked it in the description. Sorry for that!
hi sandro i dont know c++ so maybe this will help you maybe not... the description was written for python and i guess some of the definitions arent explained for c++ very well. the input in c++ would be a monster type tuple such as "typedef tuple<string, int, int, int> MonsterGroup;" where the variables are the type, hitpoints, number, and damage respectively. calling "get<1>([MONSTER])" would then return the hitpoints.
hope this helped
I don't know C++, but it looks like the monster pairs are being stored as a set of tuples within a tuple?
Hi, i wonder if you can say what an input dictonary is ? Is something like struct Monster{string strName; int hitpoints; int Number; int Damge } or a map<string, string >{...}. Hope the question is not to stupid =) Because right now I'm not sure how top get the Information. Just like name=mon1.type or name = mon1[0].
Thank you very much in advance !
Arrays can have an offset.
Thx.
I checked both. Is the arrayOfArrays.empty() and also are the stored array empty -> if so i return 0.
Thats why I`m also a bit confused.
C++;
May I made a mistake, but why only the random test can catch them. I also thought about an abs(), but from my point of view the number should never be smaller than zero if i compare the max possible size with the actual size of all arrays.
Make sure you're catching these cases:
I dunno C++ version but in javascript (and probably other languages) there are tests where the shortest array's length isn't 1.
I'm not sure but if the code follows the description there should be only one array missing.
This comment is hidden because it contains spoiler information about the solution