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.
This comment is hidden because it contains spoiler information about the solution
Thanks for your comment!
This comment is hidden because it contains spoiler information about the solution
You have to post your solution here if you want anybody to see it.
Because the compiler doesn't know what to do with your type, and doesn't know which other type to convert it to?
Not an issue.
This comment is hidden because it contains spoiler information about the solution
It's probably too late, but in first place read more precisely into the description, because currently your solution is wrong.
C++ version of kata should use more modern and familiar type for passing board to function. Passing fixed arrays is very unusual to C++, and if we taking into account that it is actually a pointer to fixed array it becomes even more non-obvious, unsafe and inconvenient to work with. I think there is should be some container from STL, such as
std::vector< std::vector< unsigned int > >
orstd::array< std::array< unsigned int, 3 >, 3 >
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The C++ version is definitely not broken. You can print the inputs and debug your solution yourself, and if that doesn't help, you should post your code here with a spoiler tag - nobody will be able to help you if all you say is "please tell me what I'm missing".
I think this kata is completely broken for C++.
I tried two very diffirent approaches, and they both don't pass tests and return
false
in some case(s), where expectedtrue
(but they both pass random tests though and any test on my local machine).And yes, I know about elements ordering, possible values duplications(which was not obvious from instructions) and negative elements appearing(which was absolutely surprising for me and broke up one of my solutions at first)
Maybe I'm missing some very important detail, that not are obvious from instructions.
I would appreciate if you point me on this detail, but right now I think this kata is broken in some strange way. And I can describe solutions in further details or post code of them, if someone needed