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.
Thank you!
Failed to pass this test:
Expected: equal to 8.26474 (+/- 1e-08)
Actual: 8.70883.
Have no clue what is wrong. Probably some magic related to doubles and precision, but I can't get where.
https://gist.github.com/Lezh1k/0e4f948d5c7a99aef15a1973f715e837 - here is a not perfect visualization of path (not perfect because traversing through arcs look like lines, but they are not).
Please give some hints :) Or maybe just show right path and I'll make changes accordingly.
lol
Finally solved with most stupid method I believe :)
ok, maybe I got it... will try later change the check, thank you
This comment is hidden because it contains spoiler information about the solution
Thank you
" ...---... -.-.-- - .... . --.- ..- .. -.-. -.- -... .-. --- .-- -. ..-. --- -..- .--- ..- -- .--. ... --- ...- . .-. - .... . .-.. .- --.. -.-- -.. --- --. .-.-.- "
2 spaces should be at the beginning of result, right?
So why the expected result is "SOS! THE" instead of " SOS! THE".
If I ignore first spaces - another test fails. The one where expected result is " E E ".
I'm using C.
Seems you are right. I will add the condition into my solution (in future, maybe :)
Then C++ tests should be fixed.
Tried to use same solution in C++. Worked %)
I believe that there is some issue with tests. Not enough precision of double type .
should be 7.75472560975609859, got 7.7547256097560977
should be -0.185930520562766433, got -0.18593052056276646
Attempted language is C.
What can I do with this? Should I try long double instead of double? It works in local tests, but it does not here.
Could you explain this:
parse_regexp('(abc)d') != parse_regexp('abcd')
I have all tests passed except two of them. Both look like this simplified one:
((ab(cde))fg) = (ab(cde)fg) should be ((ab(cde))fg)
At the same time ((abc)) => (abc) ?
I understand that this is not hardest issue ever. But my solution looks like totally wrong strategy. I'll take a look on that paper, thank you.
btw I was thinking about SIFT or ORB, but they look too complex for me.
Also I tried to find center of mass and get array of distances from each point to that center. After that I made FFT on array of distances and then tried to calculate correlation coefficient with template array. But it did not work. Or I made mistake somewhere. Anyway, thank you :) I'll read that paper first
Finally passed all tests :-D
But I can not even understand other solutions %) Especially that one in kata description. @geoffp could you provide some info? Maybe link to paper or something like that?
Sorry, found error. At least found some strange thing in my code :)
Loading more items...