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.
Yep, but with map, you dont need to use
for
herei want pizza
It's the same thing
def print_statements():
# Printing lines of code:
data = ["Hello Mark!","This is my first python script.","Python will be fun to learn!","I am not at COGS","I am at home in my jammies."]
print("\n".join(data))
Oh yees
@Dezoway: go on with the good work!
@Samickey: I slightly modified the random tests so the distance are always strictly increasing.
Thanks for your posts and cheers!
At first I did not understand the description,then I realized that the distance is measured using the Pythagorean theorem,only one cathet is unknown.I like this kata
Thank you for your quick answer !
Yes but I recognize that I didn't pay much attention to it and I haven't made the implication that the right angle could be on X_{i+1} and not on X_i.
It could indeed lead to the solution, but I'm not sure it is clear enough.
Since it is written that
I think one could deduce that the distances are in increasing order (and it is the case on the test cases and all basic cases I presume) since
Also it is not precised that if X_i is not visited, X_{i-1}X_iX_{i+1} is not necessarily a right triangle, so even if X_i is not visited you could presume that X_0X_{i-1} is still smaller than X_0X_{i+1} which leads to considering the right angle on X_{i-1}.
On my opinion it would be better explained if it was written that in "X0X_{i}X_{i+1} is a right triangle which right angle is not on X0" or "is on X_{i} or X_{i+1}".
This way it is clear that X0X_{i} and X0X_{i+1} are unordered (considering X_{i} is visited or not).
Anyway, maybe its just me (english is not my mother tong, maybe it is clear for other) and I don't think it is a real obstacle in this kata !
I'm the one happy that OCaml has been implemented in CW and that people bother to translate kata to OCaml !
Cheers
If only the route always consisted of right triangles it would be cool
This man is right.Why, if he doesn't understand, is this his problem?I also didn't understand the explanation,and there is only one example for this kata.Setting the type:I want it to be like this, make it like this.Where is the normal admin support?
This means that your algorithm is not productive for large values.Optimize with a faster algorithm
This comment is hidden because it contains spoiler information about the solution
You're so smart why don't you have 1 kyu?
Too many show-offs.
Loading more items...