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.
I just tried the kata and I had no problem at all. Furthermore 74 guys passed the Clojure kata. Could the problem be in your code?
You are thinking of each value in the kernel as a per-color channel value, but that is incorrect. Each value is a per-pixel value. Maybe I can draw it out more clearly:
When we first start, the kernel should be centered on A:
So then per channel, our formulas end up being:
Maybe you edited the example test cases accidentaly (or intentionally) and now it has some bracket issue? You can try "reset" button (but make sure to copy your solution before that, as it will be reset as well).
I tried it again today and still can't recreate your problems.
I will mark this issue as resolved. Please let me know if you still have problems!
It hasn't changed recently and it works perfectly for me.
Your error message is almost always the result of unmatched braces. The opening brace is probably at line 6, and the compiler can't find the closing one.
Please check your braces (and double-qoutes around your strings) and let me know if the problem persists.
This comment is hidden because it contains spoiler information about the solution
@jnicol This "res variable"... what language are you doing this kata in? Python does not have a "res variable" :-(
It prints nothing, but that doesn't mean you haven't been returned anything. Look more closely at your res variable...
You're half way there!
Yes, it is normal that this prints nothing. But it doesn't mean you can't do anything with it ;)
Hi nha, well, I believe I'm too late to apply a regex to the function body and strip out comments. I think it isn't worth the risk of an accidental solution invalidation. You still can place your comments outside the functions body :).
As for the segment1 given solution, you are right. I've corrected the preloaded solution giving the more accurate and meaningful segment7 solution.
Thank you for the hints.
Please - everybody upvote the "fork"-option for the katas. I'd LOVE to adjust the description - it's just that I can't, because the Kata is in "play-only" mode :(
Actually, I understood that only ASCII-characters should be counted, and I was later stunned by the fact that almost no other solution bothered about this.
Well I might change the kata description so that the solution also accepts all the UTF-8 characters, I think this would be better ?