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.
There's a different way to define the function that would bring your code well within the limit
This comment is hidden because it contains spoiler information about the solution
Any two words are similar to each other in kata's definition by removing all characters of the first and adding all characters of the second in right order.
And you need an algorithm more than those library :)
is it possible to use the libs pyprime?
strawbeRy for strawbeRRy is 1 change (add 'r') or is it 2 changes (replace 'y' with 'r', add 'y')?
How about
strawbeRRRy for strawbeRRy? 1 change (remove 'r') or 2 changes (remove 'y', replace 'r' with 'y')?
i dont know why riyhpvimgaliuxr' should equal 'zqdrhpviqslik.
if i have a ratio of 0.5 in riyhpvimgaliuxr and 0.35 in the other. i just have this error.
i use difflib and SequenceMatcher.
Thanks
Not a kata issue, print the input and check your code. It seems you're moving the numbers to the end of the string and the lowercase letters to the start.
i think the test is not ok, i pass the simple test, but after:
'foobar00001' should equal 'foobar01000'
Test Passed
Test Passed
Test Passed
'001' should equal '010'
Random tests
'cdyx6354163080484291509220391423037742834' should equal '63541630804c8?dA4291509220391QGyxO423037742834'
'mexfq21204269222016731900001' should equal '<^/2PU\m12>~ ?0eZ426922>xT-M201673fJIqG1900001'
'woldudze629193654434797310078345187160' should equal 'wol!,Wd62919365`|D\4XB43479731007u[dzJeH^8345187160'
'bupulsa217130337019066355717624343272764985350830000327877' should equal 'b!{u21713033+Dp:)u 70190663WHNM5NIX571762434lU\A3s27276498a535083,0000327877
Wow, totally thought about this wrong thanks!
PHP Translation
A and B are the side lengths of the squares you want to fit in:
Suitcase (8x7)
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
A (7x7)
| A | A | A | A | A | A | A |
| A | A | A | A | A | A | A |
| A | A | A | A | A | A | A |
| A | A | A | A | A | A | A |
| A | A | A | A | A | A | A |
| A | A | A | A | A | A | A |
| A | A | A | A | A | A | A |
B (2x2)
| B | B |
| B | B |
Javascript error:
a=7 and b=2 should NOT fit into m=8 and n=7
Expected: false, instead got: true
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | E |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | E |
| 2 | 2 | 2 | 2 | 2 | 2 | 2 | E |
| 2 | 2 | 2 | 2 | 2 | 2 | 2 | E |
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
| E | E | E | E | E | E | E | E |
How is this supposed to be false?
square: 11,9 squareMax: 11 maleta: 52x52 ladoMin: 52 True
This is my result and kata tell me False, why?