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.
Really humorous annotation:)
There are still two test cases behind: "lager_mn", "random_large_mn".
So maybe you failed in some test cases of "large_mn", you can use std::cout in your code to check what params make this.
Glad you enjoyed it. If you're pretty certain of this error, you can post a bug/issue at: https://github.com/Codewars/codewars.com/issues
Try to provide any information that may be relevant.
Hi, I seemed to successfully submit this kata twice in python version and got double score. Also in my completed kata history, there are two same katas named Plants and Zombies.It's this a bug of Codewars? Can anyone explain this, btw, I don't want to be treated as a cheater....Thx, Nice kata still.
oh, my poor English translation....
Fabulous kata ever!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
For those who stucked in kernel laplacianFilter test case(C++ version). Here is the hint: if your calculated average sum (float) > 255 , let sum = 255, if pixel < 0, let sum = 0. Really stupid, waste me a lot of time.
Very interesting kata! I almost undervalued this one, but it actually takes me some time to solve! Thx:)
You can google SIGSEGV to find some useful hints.
A SIGSEGV is an error(signal) caused by an invalid memory reference or a segmentation fault. You are probably trying to access an array element out of bounds or trying to use too much memory.
Try to check your code with array.
Thank you~
Thanks for the kind words. The
Image
constructors in C++ are:I know that. In my opinion, when lambda"sum" is used in accumulate, maybe it leads to a problem. Actually code want to assign 0 (the init number) to acc(the integer param in sum), but its function signature is(const char c, int acc), and maybe 0 -> c(the char param), and that's a little bug. You can take a look at the example in the link above. I tried these two verisons, and they all passed the test, so that's my problem.
Have you already realised what's wrong in your question? Those params are refer to lambda "sum" function. Not to accumulate.
Loading more items...