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.
Well, that was embarrassing. It's fixed now.
(If you're interested, this was the bug: the test code called
reserve()
on the vector, but didn't set its actual size. So solutions that ignorepixels.size()
and just try to access the data anyway -- which was all of them, until you came along -- worked just fine.)for the c++ version, I think there is a problem : no image data is given in the test suite, the data array seems to be empty.
JavaScript
thanks a lot !
The test suite calls
average
multiple times. Your implementation should be able to handle that.Not an issue. This is what the label
Question
is for.This comment is hidden because it contains spoiler information about the solution