Ad
  • Custom User Avatar

    Description should be language-agnostic (regarding this part and the examples

    startsWith("hello", "HE")

  • Custom User Avatar

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

  • Custom User Avatar

    i maked Translation

    ░░██████░░░░░░░░░░░░░████░░░░██████░░░██████████████░░
    ░░██░░░░██░░░░░░░░░░██░░██░░██░░░░██░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░░░░██░░░░██░░██░░░░██░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░░░░██░░░░██░░██░░░░██░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░░░██░░░░░██░░██░░░░██░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░░░██░░░░░██░░██░░░██░░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░░██░░░░░░██░░██░░██░░░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░░██░███████░░█████░░░░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░██░░░░░░░██░░██░░░██░░░░░░░░░██░░░░░░░░
    ░░██░░░░░░██░░░██░░░░░░░██░░██░░░░██░░░░░░░░██░░░░░░░░
    ░░██░░░░██░░░░██░░░░░░░░██░░██░░░░░██░░░░░░░██░░░░░░░░
    ░░██████░░░░░░██░░░░░░░░██░░██░░░░░░██░░░░░░██░░░░░░░░

  • Custom User Avatar
    • Lua and C translations lack random tests.
    • Lua's function name is not the one used in the tests (startsWith) throwing errors when running the tests.
  • Custom User Avatar
  • Custom User Avatar

    There's a general convention to return zero when everything is ok (one way to do it) or when error has occured (many ways, hence many numbers).

  • Custom User Avatar

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

  • Custom User Avatar

    C sample test code has compilation warnings.

  • Custom User Avatar

    Example code that will SIGSEGV the tests, yet has a perfectly reasonable return value:

    char **match (const char *p, const char **f) { char **m=calloc (sizeof (char*),1); return m; }
    
  • Custom User Avatar

    c_ary_eq implementation is deeply flawed: actual being shorter than expected will cause SIGSEGV.

  • Custom User Avatar

    Since you are insisting on modifying the input buffer and return it (which is not tested in any sample or fixed test) you should at least mention this in the description or the initial solution setup. I don't want to guess this from the fact that the signature doesn't declare source as const char*.

  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/147.
    Please join the discussion to share your opinions, and help us identify duplicate kata and retire them.

  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar
  • Loading more items...