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.
sin(60°)
the centers of the balls are in a 60° axis from horizontal axe
nice one dear if you don't mind can you please tell me how did you get this Last number before semicolon.
Fixed
confirmed: the ref solution is miles away of a correct algorithm, compared to other languages.
The same for me!
yes I also face the same problem.Do you solve it?
Dart translation:
Problem with random test.
Example 1
with double space. Expected <true> actual (my result) <false>
Another example:
with double space. But Expected <true>
Hi, I'm learning a new language. So I've started with mainly 8 kyu katas. After a couple of days I'm ranked as 6kyu but I'm sure I am not in this level of knowledge.
Maybe the score provided by a kata must decay based on the number of previous katas solved in same ranks. So it is not the same the first solved 8 kyu kata than the 100th 8 kyu kata.
Or maybe set the katas like ELO system (from chess, o similarly from tennis). The score is based on your current level and the level of the kata. The rank increment will be increased more if the level of kata is more dificult than yours and the rank will be stagnated if the level of kata is lower than yours.
Thanks, but it's an illusion ;-).
"kata programming" is not a good place for real best practices:
In general, the code I study here is all "write once, read it never". The code is not written to be maintainable. :-(
Nice style; I found that it can arrive there sometimes.
This comment is hidden because it contains spoiler information about the solution
This solution iterate by each vec twice. One to transform into a Vec of lengths and other to sort vector.
In Rust String.len() is not the length in characters. So the result may be wrong (if there are letters with acutes: ö, è ...)
There is an itertool maxmin method. I'd save for the fold