• Custom User Avatar

    In c++ 0 is for false and 1 is for true. Use boolalpha for literal use of true and false.

  • Custom User Avatar

    Not a kata Suggestion, use Question label for things like this. Use return "*" + str1 +"*"; you'll see you have some leading space and also, you're missing some spaces around the =. About this, check there is a difference in spacing depending the value.

  • Custom User Avatar

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