• Custom User Avatar

    I agree. The question suggests that the strng is a bunch of letters followed by numbers, not !@$#%$@%53632gs#@$@%$#32g436. I tailored my solution to solved the first not second kind of test case. If I want to get this kata marked as solved, I am going to have to start from scratch (which I won't)!

  • Custom User Avatar

    Could there be entries other the examples you have give.
    If there are, please add one or two more examples,
    because my code can successfully pass the entries you have give plus the one on the test.

  • Custom User Avatar

    What should be the RIGHT answer for this entry 'abcd23abdcbd99' and '123' according to this Kata?

  • Custom User Avatar

    I agree. I don´t understand why this suggestion is still unresolved ? Only the kata´s sensei can do it ?

  • Custom User Avatar

    Thank you.
    I now know what I've done wrong.
    I guess my initial argument should be: "Should I know better of what to do with FRACTIONs?"

  • Custom User Avatar

    "Not knowing what to do" and "not being able to get the code to work" do not constitute a valid kata issue.

    Your solution contains a bug. I think you could find it quite easily recreating failing test case in your IDE and debugging it locally. I was able to fix your solution with a minor change and get it accepted.

  • Custom User Avatar

    A paragraph to read: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#post-discourse

    It won't help you to fix the problem, but it could help us to help you.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    @python
    Should I know better of what to do with big numbers?

    codewars numpy is a bit old (has no lcm function), also lcm is default from the math library from python 3.9+

    Every lcm I implement seems to fail with large numbers...

    What am I doing wrong? (Code on the next post)

  • Custom User Avatar

    Please consider adding this info:

    • Possible strings might be empty
    • Possible strings might contain only numbers
    • Possible strings might contain mixed numbers in any position, such as 'abcd23abdcbd99'
    • Possible strings might have any other ascii printable chars, such as '@#!@#*&&%asbasd213213"

    This will avoid complains, a lot of complains...

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Thanks. I did not took notice of the cut message from the screenshot.

  • Custom User Avatar

    Actually you do not need any advanced prime generator to solve this kata in Python. My implementation is quite naive and still takes ~1s to run full test suite. You need to make sure you do not calculate too much, but there's no need for anything really advanced.

  • Custom User Avatar

    It literally mentions above that it's testing signature of 3 elements...

  • Custom User Avatar

    The screenshot is about the output, not the input of your code.

  • Loading more items...