6 kyu

AD2070: Help Lorimar troubleshoot his robots-Search and Disable

146 of 236user8476848
Description
Loading description...
Data Structures
Mathematics
Algorithms
Data Science
  • Please sign in or sign up to leave a comment.
  • MattE4 Avatar

    The description is bad. Instead of writing a useless story, explain the requirements in a much clearer way.

  • ahmet_popaj Avatar

    Nice kata of the series.

  • saudiGuy Avatar

    python new test framework is required. updated in this fork

  • ejini战神 Avatar

    In all languages, there should be tests whereby numbers go beyond 10K to invalidate solutions like this

  • Schulzkafer Avatar

    Why the second log '2031 ...') (Count = 51) is 'no match continue' ? Why doesn't it match the pattern ??? Is it not the same as '1031 ...') (Count = 51) ? == 'match disable bot'

  • ganzinotti Avatar

    This comment has been hidden.

  • gabbek Avatar

    Thank you for awesome kata, enjoyed it very much :)

  • myjinxin2015 Avatar

    Finally, solved it. Although this is a process full of doubts ;-)

  • Blind4Basics Avatar

    Well, i tried my solution again and... it didn't pass ! By reading the discussions, I found what was the trouble : this is the condition about "the integer must be Prime and appear more than 3 times in order to be counted". You described it, but you didn't implement this in the basic test cases, so it may occur than this case does not show up in the random tests (my code is the proof of that... :/ )

  • Blind4Basics Avatar

    Hi !! ;-)

    At the end of the description, you should correct : Return "match disable BOT" with Return "match disable bot" . This way, it will be coherent with test cases.

    ++ (trying your last kata... ;) )

  • smile67 Avatar

    Hi again, the issue is resolved now, but i think there is a new one:

    Testing for log size 3699
     Log
     90
    ✘ It should work with random inputs too: 'match disable bot' should equal 'no match continue'
    

    You can see, there are 90 hits (output of my counting, i looked into the output list too), so it's greater than 50 which means "match disable bot"?!

  • ZozoFouchtra Avatar

    Same as smile67 : search_disable_test should be rewied !

  • smile67 Avatar

    Hi, two solutions, don't know how...;-)? Seems to me your "submit- testcases" are wrong:

    Test Results:
      Basic tests
    ✔ Test Passed
    ✔ Test Passed
    ✔ Test Passed
      Testing for log size 22293
    STDERR:
    Traceback:
       in 
       in search_disable_test
    NameError: name 'is_prime' is not defined
    

    is_prime is not a function of my code. Later on same message with "Counter is not defined" appears... it's not in my code too;-). Haven't tested more, so please have a look;-).