• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
andrewdoeslearn Avatar
Name:Andrew
Clan:CS50
Member Since:May 2020
Last Seen:Apr 2022
Profiles:
Following:18
Followers:18
Allies:18
View Profile Badges
Ad
Educator, struggling to assess your students?
Assess your classroom or bootcamp with the world leading assessment platform, Qualified.Request your demo today!
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (21)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • 8dcc
    • commented on "Basic Mathematical Operations" c solution
    • 3 years ago

    Why dont just use '+', '-', ...
    They are the same as the numerical values, the other is more confusing and is only for ASCII

  • Custom User Avatar
    • nomennescio
    • commented on "Convert boolean values to strings 'Yes' or 'No'." c solution
    • 4 years ago

    There is no ISO C 2020 standard. There is no reason to assume this valid syntax will be invalidated in the future.

  • Custom User Avatar
    • Ivan_Ivanov
    • commented on "Convert boolean values to strings 'Yes' or 'No'." c solution
    • 4 years ago

    No

  • Custom User Avatar
    • techheresy
    • commented on "Fake Binary" kata
    • 5 years ago

    check your output in tests

    printf("%s\n", buffer);

    most likely a problem at the end of the line '\0'

  • Custom User Avatar
    • rustyxlol
    • commented on "Reverse words" kata
    • 5 years ago

    I actually posted my code then deleted it for idk what reason, apologies for making you go through that horrendous mess.
    I want to off myself.
    Does compare() not take spaces into account?

  • Custom User Avatar
    • Chrono79
    • commented on "Reverse words" kata
    • 5 years ago

    Use this: cout << "*" + result + "*"; your string has indeed a trailing space. And next time post your code, not an image (I had to rewrite all your code to test it). Use markdown formatting and mark your post as having spoiler content.

  • Custom User Avatar
    • rustyxlol
    • commented on "Reverse words" kata
    • 5 years ago

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

  • Custom User Avatar
    • Chrono79
    • commented on "Reverse words" kata
    • 5 years ago

    Check for trailing spaces in your returned strings.

  • Custom User Avatar
    • rustyxlol
    • commented on "Reverse words" kata
    • 5 years ago

    https://i.imgur.com/mXSq9Ad.png ?

  • Custom User Avatar
    • rustyxlol
    • commented on "Reverse words" kata
    • 5 years ago

    Is this kata working because my compiler says it's a match but on kata it isn't... ?

  • Custom User Avatar
    • andrewdoeslearn
    • commented on "Fake Binary" kata
    • 5 years ago

    Passes all random tests, works as it should. Yet I get this error:
    The expression strcmp(buffer, "01011110001100111") == 0 is false.

  • Custom User Avatar
    • andrewdoeslearn
    • commented on "Basic Mathematical Operations" c solution
    • 5 years ago

    I like this one. Good use of the ascii values.

  • Custom User Avatar
    • rowcased
    • commented on "Reverse words" kata
    • 5 years ago

    check this out, it helped me: C online tutorial

  • Custom User Avatar
    • andrewdoeslearn
    • commented on "Reverse words" kata
    • 5 years ago

    I used malloc. it didnt matter, I couldnt return the string, on the char array. I need to learn more about character arrays clearly as I have no idea how to return a whole string.

  • Custom User Avatar
    • rowcased
    • commented on "Reverse words" kata
    • 5 years ago

    You need to return a dynamically allocated string.

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...