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.
Even though the tests don't test for this, you should probably replace
'|'.join(forbidden_words)
with
'|'.join(map(re.escape, forbidden_words))
to avoid errors if any word in
forbidden_words
contains regex metacharacters.Approved as 5 kyu. :)
Done.
Also added the following to the end of Phase 1:
NOTE: In certain cases one of the sublists might contain only a single element, if i and j meet at either the beginning or end of the list.
Hi,
This line must be added to the "algorithm outline" section.
Cheers
This comment has been reported as abusive
I thought a bit more and solved it, thank you!
TestCounter
is the test class name, the $ thing, I'm not really sure, but it's not important. Your current problem is because you don't implement inheritence properly. That's why you get all these weird errors.I keep getting failed test with weird descriptions, for example:
expected: TestCounter$26<{false=1, true=2}> but was: TestCounter$27<{false=1, true=2}>
expected: TestCounter$1<{2=1, 3=3, 5=2, 53=1, 6=2, -8=3, 8=1, 89=1}> but was: Counter<{2=1, 3=3, 5=2, 53=1, 6=2, -8=3, 8=1, 89=1}>
What is going on? The values in the counter objects are the same, why are these test failing? Why is TestCounter$26 getting substituted for TestCounter$27?
this is the answer i didn't know i was looking for. thanks!
All katas have been enabled according to the list, closing ^^
Can you explain, please, string: balanced_num = balancedNum? Without this solution doesn't work. Something tries import, i don't understand
Probably 2 Kyu for having to work real hard to understand the requirements from incomplete descriptions, test cases, the discussion section, and trial and error. Great...
done
like this:
longer pieces are not valid because they would contain some separations.
EDIT: sidenote: I see you didn't solve the easy version yet. If you plan to solve the present one first, don't post the same solution in the easy version. Prune out the irrelevant parts of the code first, thx.
Loading more items...