Ad
  • Custom User Avatar

    好兄弟,这玩意怎么证明的知道吗?我菜狗只能用递归

  • Custom User Avatar

    very good kata!!!

  • Default User Avatar

    it means your code is wrong:

    • it has undefined behavior if either full_text or search_text are empty
    • it is incorrect in other cases, e.g. it returns 0 for "baa", "aa", false
    • (it is extremely inefficient to call strlen() in a loop)
  • Custom User Avatar

    should_handle_empty_strings
    Test Crashed
    Caught unexpected signal: SIGSEGV (11). Invalid memory access.c

    what does the mean???

  • Custom User Avatar

    should_pass_some_random_tests
    search_substr("daeddbecdacbaddadcbecbbceddacedbacedbaaebaaddadddeeccbabbacdecbebdacaaddcaccbcdbecdbddabdccabaeedecbccebddebbccaeadabdbbcabdbddbcccbbcabaecddbaeceeacddcdacbdadceabdebeccccaddbccbcbbddbdbdddbcadddabceabbcaeecbccadaabadeaccceddedbbccdaeaadedaddaaecacdabbacbdbeeaddaddaadbeeaebaaddacadaabbaeccecabcabdeaedadbceacbedeeaccdceaddcaadddedeeadadeaaabababeebddbbdabeaaeededeceedbbadebaacadaabcebddcdcdedcaadbabcaebccdecbaccebbcbadbdeececcaceedadccdbeadeecaccecaabeeaabdceebeebbcaedcdcdcabeedbbbcaececeabdeceaeebdbbcaecdabbecabaeebdabbdaddcdeaddcaabdddbbcbbebcacaaabecceeadbaddadbabacaeaddbbdadbacccebdbbebaadabbedaedacbdacdbaaacebaecbaadaaecbdcbeabbebedecdbecaacbeacbecbabadbb", "baa", false) should return 7, actual: 3

    The return is 7 ?????,when the " overlap" is 'false'; but I use that 'overlap' eque to true, then i got result 7.

  • Custom User Avatar

    This usually means your code performs division by 0, but its difficult to tell without seeing your code.

  • Custom User Avatar

    Test Crashed
    Caught unexpected signal: SIGFPE (8). Erroneous arithmetic operation.
    allways this error; My code running fine in VSCode/GCC.

  • Custom User Avatar

    Is these something wrong?, C language, No 'm' or 'M' in the test string.

    There is an 'M' in the string.

  • Custom User Avatar

    Is these something wrong?, C language, No 'm' or 'M' in the test string.
    Random_Tests
    should_pass_all_the_tests_provided
    "pzOBAiHPDQUg8EL6ilaIufonTFbYjXSFRKwkt:ZcVPsSgxG#MId"

    Submitted false

    Expected true

  • Custom User Avatar

    That generally means you tried accessing something out of bounds.

  • Custom User Avatar

    It is C implementation

  • Custom User Avatar

    Anyone know why this error?

    Test Crashed
    Caught unexpected signal: SIGSEGV (11). Invalid memory access.

  • Custom User Avatar