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.
missing test size spec in description, which is required to understand what problem needs to be solved
js tests need to be updated, missing random tests + other issues
As a new comer on Codewars, I wanted to try to translate some kata, and was inspired by this one...
So I've prepared a Python translation.
Anyone to check, comment and possibly approve ?
There should be no need to use decimals in this particular challenge, and floats should work. I tried to build the tests in the way to make them resistant to precision issues, and if you have such problems, then i believe its something not exactly right with your code.
I can double check if you post your code bere.
When using Python 3, is it recommended to use the decimal module? Is the floating-point precision so bad for doing its kata?
the initial code should be a class
This comment is hidden because it contains spoiler information about the solution
Random tests are basically non-existent, only 1. Also random test is setup as such
with a predefined prefix...(Solutions can easily hardcode such cases along fixed tests).....
@JohanWiltink grats on another "premature" approval !
Description also does not explain whether the match string will take the
\n
character into account or not. Initally I was thinking of cases like (abc\ndefc\nhu
,chu
)More test examples are needed, the link to the article does not work
I had to work that one out myself. Excellent
OP has posted the wrong code to the wrong kata, should've posted it to
Boggle Word Checker
No doubt it is clever, never knew you could do it like this. Thans
I can't pass the test 09. I measured the slow solution(N^2) on test 08 and got an average time of 430 ms.My solution, as I believe for (logN), takes an average of 80-90ms.However, this is not enough to pass test09
KataTest
test01_Example
test02_TwoPoints
test03_DuplicatedPoint
test04_Tiny
test05_Small
test06_TwoPoints
test07_DuplicatedPoint
test08_Medium
Log
Прошло времени, мс: 103
Прошло времени, мс: 92
Прошло времени, мс: 57
Прошло времени, мс: 92
Прошло времени, мс: 67
Прошло времени, мс: 75
Прошло времени, мс: 99
Прошло времени, мс: 73
Прошло времени, мс: 62
Прошло времени, мс: 72
Test Passed
Completed in 811ms
test09_Large
STDERR
Execution Timed Out (16000 ms)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...