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.
OP solved it, closing
Within code block between braces { }, an instruction is expected. Expression
a-b
isn't an instruction. What may confuse you is, thata-b
at compilation expands to{ return a-b; }
. So, in lambda expression you can use simplified notationa-b
or full instruction{ return a-b; }
, but can't mix them.This comment is hidden because it contains spoiler information about the solution
Thanks!
Nice idea for a kata.
Cool.
This comment is hidden because it contains spoiler information about the solution
cool.
This comment is hidden because it contains spoiler information about the solution
oh, I used the brackets for if, because I really wanted to do the kata. Then I realized there is no java translation. So I learned a lot about python now :-D
I observed, that there is no honor given, when I did the same kata in another language or repeat it with the same language. Maybe you tried it already before?
I think there is no way to get rid of your earned honor. Don't mind about it. You are on the right track, when you are interested in your real progress and not in only your rank. At least it is a good prerequisite to really become better by practicing. A lot of desperate coders are searching for solutions on the internet resulting in nearly copied codes. If you try to learn from it, i think it is ok.
Somtimes I also use another sorting to see and vote e.g. newer solutions instead of the ones that have already a lot of.
You have to calculate the highest score that is present after throwing the dices. The values of the dices are given in and calculation has to be done by the listet rules. Some dice values can have different scores dependent on the number of dices, that have the same value. Was this your question? Hope it helps.
You can use markdown to have a better formatting. See https://github.com/Codewars/codewars.com/wiki/Markdown-Formatting
Loading more items...