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's a hardcoded solution.
And also can do height ** 2, pow(height) <--- (for this you need importing pow from math or importing math)
what's that!
I have 2 different solutions with 27...
too long an complicated :-) see my fork
There's a more concise way to do it with formatted string literals https://www.codewars.com/kata/reviews/59b1a938182024506b00081d/groups/5d211384ed0ee5000134b2e3
The description should probably have a worked example for
[1,2,3]
though.The last one can be golfed further, although it's already the shortest
Only the most simple example (
[1, 2]
) is detailed in the description, which doesn't seem to be sufficient. Or maybe I'm just getting old and senile, and don't understand the task after solving 3000+ katas here...The method for obtaining the order is very clearly explained in the description, which also includes a detailed example.
I think using sets (random order) would be more intuitive, but since this is a 5 kyu, I feel like following a specific algorithm isn't too much to ask.
TypeScript translation
JavaScript translation
А можно нормально условие задачи объяснить? при каких условиях и как должна быть показана камера? Вот реально влом каждый случай по отдельности разбирать и искать закономерности по ошибкам. В примере одно, в тестах другое, автор имел в виду третье. Там с точками, здесь без точек, тут скобки вплотную, здесь на расстоянии. Ну что за Х?
@dfhwze I personally think that you are doing a great job contributing and overall, so I didn't mean to be rude, sorry if that's what it sounded like. And I am sure that not too many people can do better than you. :)
I just consider that this particular kata is probably a little better suited for 6 kyu, but also not too far away from a 7 kyu rank.
Hi all, I'm going to go with the democratic approach for this and say 6 as it has more votes (per api call above). If someone needs me to change it to 6 let me know.
Loading more items...