Ad
  • Custom User Avatar

    It seems your last solution now passes all tests, so it could be a glitch on your side; still, without the code in question it's hard to say it certainly.

    Anyways, closing the issue now~

  • Custom User Avatar

    Hi @ShaneSmith34 and welcome to Codewars!

    It seems you are working in Java - you can post your code WITH A SPOILER FLAG PLEASE in your comment/in a comment below, and someone who knows that language can help you figure out what was going wrong.

    Without knowing the specifics of which tests you failed on, and what the error messages were, it's hard to debug such issues - in future if you want people to help debug it's best to provide such data.

    Also, you might be interested in the Codewars Discord (link in sidebar on the left) - there's a help-solve channel and a Java channel where you can ask for help with katas/your language. That way you can get some quicker feedback so that you don't have to forfeit a kata if you think your approach is correct.

  • Custom User Avatar

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

  • Custom User Avatar

    Yeah it took me a while to understand the .format() method. Basically the "%.2f" says to place it to two decimals (0.00) and the ", sum" mean insert the variable sum in that format. Hope that helps anyone who is curious since Wiseguy03's question was from 2 years ago lol

  • Custom User Avatar

    This is a great one line return with a ternary. Maybe I am just too new but I feel like really long ternarys like this are more confusing than helpful to read.