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.
n
andm
, in (2,1), there are 3 points on a line, and 2 more on the arc.Such an unbalanced kata:
Fun kata, thank you. Suggest to fix a couple of typos in the description: diametr -> diameter and quadrilaterlas -> quadrilaterals. Also
combinations
is not the best function name in Python because it clashes withitertools.combinations
.I have the same question .... We have the example combinations(2,1) -->(9,3)
In this configuration, we have all the points in a line but one ==> I don't see a way to have a quadrilaterals which is not a triangle + one point on one of the side. I think we need to take the name quadrilaterals in an extend way...
i think that i concidered all the possible combinations:
*for triangles:
1.two points on arc and one point on diameter
2.two points on diameter and one point on arc
3.three points on arc
*for quadrilaterals:
1.two points on diameter and two points on arc
2.one point on diameter and three points on arc
3.four points on arc
this passes eleven tests but no more. do i miss out anything?
Crystal Translation done, please check.
Nope.
It's pretty simple: I told you what to change so that:
Now it's up to you: either you update your translation (again, in a fork of the current translation), or it just won't be approved.
I did exactly as author , also please look to other katas' translations, you will see that not always translations should be the same (even for languages like C/C++ or Python/Ruby which are pretty similar). God bless u , dude
it
block, not a functin definition (as you did for the sample tests)simple_test
andharder_test
, the ranges must be inclusive on both limits, so that it's consistent with what's in the description.Note: your current translation is rejected, meanig that this version cannot be approved. You have to
fork
it rather thanedit
it so that the fresh version can be approved.'later
I tried to make it exactly like in original test. Is it ok now?
And how is this a kata issue?? You can ask questions under any specific solution, if that helps. Closing...
Edit: what the hell, sorry. It was showing up as issue to me. But you should use spoiler flag for questions like this.
You can search about fibonacci ladder problem where length of steps not greater than 2. Then think about generalization of this problem.
This comment is hidden because it contains spoiler information about the solution
pretty simple: unless there are preformances adpation needed, a translation in a new language must be fully equivalent to the previous ones. Yours was having only 2 single tests...
Note that fixed tests have been added to the test suite too.
If you explain nicely , I will try to fix translation. Thanks in advance.
Loading more items...