Sorry for such late answer and thanks for feedback.
Tests aim to have results like with original split function, so if one has problems, should either take a look in Pythons doc or just experiment some in Python console.
If you wolud have some concerns about some specific test case, just let me know!
I think you can see some input arrays (among others the one you give) in "Example tests"; it seems that the ls you mention is wrong: ts = {91, 74, 73, 85, 73, 81, 87};
For other tests I am very sorry but you have to print yourself to the console the input. Think that you are debugging without debugger:-(
I don't think the tests could be wrong. The fixed tests are the same in all languages and you can see at the top of the page that lots of guys (953 together and 43 in C++) passed the kata.
Kata is now retired.
what language?
Because only python 2 is available, and
/
is integer division in python 2...Being easy isn't an issue.
Actually if you use Decimal("...") instead of float("...") for your calculations, just converting the final result back to float type works.
@g964 what do you mean by preloaded section?
Sorry for such late answer and thanks for feedback.
Tests aim to have results like with original
split
function, so if one has problems, should either take a look in Pythons doc or just experiment some in Python console.If you wolud have some concerns about some specific test case, just let me know!
I think you can see some input arrays (among others the one you give) in "Example tests"; it seems that the
ls
you mention is wrong:ts = {91, 74, 73, 85, 73, 81, 87};
For other tests I am very sorry but you have to print yourself to the console the input. Think that you are debugging without debugger:-(
I don't think the tests could be wrong. The fixed tests are the same in all languages and you can see at the top of the page that lots of guys (953 together and 43 in C++) passed the kata.
Good!
12 guys passed the C kata (not that many...), but I just tried a few solutions and all worked fine.
Jesus christ
Helper functions are in the preloaded section.
You can convert float back to str, cut it and then represent it back as float. It works :)
Hm, really. Thanks!
Hi, Python documentation is powerful. Try the Search :)
Regards,
suic