Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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~
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.
This comment is hidden because it contains spoiler information about the solution
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
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.