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.
what about
"\nbug"
? is it out of the scope of this kata ? some solutions would not detect itPython: missing
it
block for random testsJS : my solution would fail for:
['/web/images/', '/web/images/']
they should either be explicitely out of specs, or tested for
This issue is still relevant in JavaScript.
The tests for this are not exhaustive.
The
combine
operator does not make sense in this kata; in fact it doesn't even belong to the builder becausecombine
does not keep the capability of the builder invariant: you can't use any other operators aftercombine
is used (trying to add a class to something likep#introduction ~ img[href$=".png"]
makes no sense at all (unless you're doing SASS and allows nested CSS, but that's not CSS)).This comment is hidden because it contains spoiler information about the solution
Nice one.
I suggest to add a visual description.
First example :
1 || π || π π || 0
2 || π || π π || 0
1 || π || π π || 0
1 || π || π π || 0
Denied : 0
Second example :
1 || π || π || 0
1 || π || π || 0
2 || π || π || 2
1 || π || π || 0
Denied : 2
That freshly baked Python translation uses
pathes
as the preloaded function parameter. Should bepaths
:)Copied from https://codeforces.com/problemset/problem/123/B
There's already a kata about implementing the builder pattern, which also has less repetitive work to do, no annoying input validation, and no bad design decisions (using the same instance as the base for all builds, mixing static and instance methods).
None of these cases are mentioned in the description.
the tests are literally bullshit: I pass every fixed tests but not any random tests....
add several random tests and i;ll approve the kata
This comment is hidden because it contains spoiler information about the solution
Loading more items...