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.
yes too ez
what the hell??
Amazing!!
Lol, me too. In case I need to translate it to C later.
Why good ???
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
this shows the power of math!
took me longer than i want to admit to see the pattern, fortunately got there just in time :P
Python. Kata wants us to sort it based on numerically descending 9-1 which makes sense. what gets confusing is the alphabetically part. From my knowledge sorted() sorts a-z, so ascendingly. So my sorted list would be sorted 9-1 but when two conflict for same rank it would put a before b. Made me a bit confused. I'd say just sort ascendingly from 1-9 to simpify the sorting process, cause it's not really important. Other than that pretty nice, especially the use of json data.
Also at some point in my attempting the tests threw an error from serverside saying something about not supporting > with None type. Only happened once though.
I didn`t even know about count method and used loops, lol. Thanks for the best solution!
this is not a kata issue, because kata authors cannot install new language versions, only the administrators of Codewars can. you can request language versions here but there is already one request for Rust
what's the problem?
you are confused about the syntax of a constructor in Java. constructors have no return type. by providing a return type
void
, you are not creating a constructor but a methodBlock
in the classBlock
, which is unusual but allowed by the language. and then the tests crash because they cannot find the expected constructorthe markdown in the description mixes code blocks with language blocks, resulting in confusing rendering, e.g.:
either the languages tags should be replaced by conditional ones, or the backticks surrounding function names should be erased and the specification commented out
Loading more items...