Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Sorry for the tag 'issue'.

  • Custom User Avatar

    Try adding prints to your code, you'll see that your code is accessing string data beyond the input and reading in unrelated data.

    Please use the 'issue' label for issues with the kata description or testing. Bugs in your code don't count.

  • Custom User Avatar

    That looks like you're using a global var and that's why your answers become wrong, the expected answers given the input is fine. Not a kata issue.

  • Custom User Avatar

    Hi all! I solve tasks in C.
    I ran into a problem while testing my code.
    As if in tests another line is substituted instead of the one that is displayed on the screen.

    FixedTests
    for string: "a b"
    expected: "b"
    but got: "yz"
    Completed in 0.5829ms

    RandomTests
    for string: "rqifoqs moxb"
    expected: "rqifoqs"
    but got: "qazeeqfjlqisgbgqammfpjlsn"
    Completed in 0.8304ms

    Moreover, if you comment out all the tests and leave one, the program I wrote solves all the options.

  • Custom User Avatar

    I did'n know about "sprintf" (((((