Ad
  • Custom User Avatar

    2nd line of the description.

  • Custom User Avatar

    This is NOT a kata issue. When your solution can't pass the tests printf starts outputting text in an "unexpected" way. Maybe your code is working correctly in these cases, but it's still wrong.

  • Custom User Avatar

    When I ran the program it fails for "a" and "aa b". But when I checked the output in printf, values are "a" and "aa". Then why tests are failing.

    FArekkusu(1 kyu)27 minutes ago

    1. You might be misinterpreting the logs.
    2. printf may act funny from time to time making it even harder to understand what's happening.
    3. C version is alright; your code must be the source of the issue.

    mumararshaikh(8 kyu)11 minutes ago1 edit
    But issue happen only when the answer is a like "aaa b", "aa b", "a". But it passed for "b aa".
    @FArekkusu Can you elaborate why printf function act funny.

  • Custom User Avatar

    But issue happen only when the answer is a like "aaa b", "aa b", "a". But it passed for "b aa".
    @FArekkusu Can you elaborate why printf function act funny.

  • Custom User Avatar
    1. You might be misinterpreting the logs.
    2. printf may act funny from time to time making it even harder to understand what's happening.
    3. C version is alright; your code must be the source of the issue.
  • Custom User Avatar

    When I ran the program it fails for "a" and "aa b". But when I checked the output in printf, values are "a" and "aa". Then why tests are failing.