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.
I am sorry but could someone tell me how to calculate square roots of large numbers such as "1488099328131240642930278400000000" very precisely (round up to lower int) so that if I make x^2 I get "1488099328131240642930278400000000"±10 (approximately) as an output?
I am surprise because I tought everyone used the way I used but seen none.
Was the way I did the way it was intented ?
My bad I re-read the description and saw that it was pairs between 1 and n and not sum(range(1,n)).
Thank you anyway !
My code works fine except I just don't understand why sometimes you need to return only one pair of integers when several others would work and sometimes you need to return more but not every single one of them.
Could someone explain me this please?
Why is it not an issue ? The result is not the good one since D is not as small as possible.
Why [[69, 130], [87, 1310], [3, 4]] should return [[18078, 34060], [2262, 34060], [25545, 34060]] and not [[3588, 6812], [435, 6812], [5109, 6812]] since Fraction(69,130)+Fraction(87,1310)+Fraction(3,4) --> Fraction(9177, 6812)?
Can someone give me a hint on this one ?
I will unpublish it until its 100% working
It's not a duplicate... I just learned about combinations in math class and thought it would be fun to try and make a kata about it
Sorry first time I am creating my own kata and was struggling with a bunch of things.
Anyway, I tested it as a random person would do multiple times and should be working...
yes sorry I miss clicked on published...
Now it should be working!
Not gonna lie, I am quite new to coding... I started over the summer but didn't practice often until 2 weeks so I am not very familiar with all this stuff, especially complex in python since I have not even studied it yet in school.
I think I am going to check this kata and modifie it a bit every now and again regarding people comments.
Anyway you have been extremely helpful!
Thank you very much :)
This comment is hidden because it contains spoiler information about the solution
First, thank you !
What I mean by coordinates is the coordinates that we would use to draw the figure in an axis made of real numbers.
To answer your question, I just don't know how to deal with complex numbers in python.
I just wante to contextualize this kata a bit but your probably right, I think I am going to ask people to return a set of coordinates in order to draw a figure in a circle.
Sorry to bother you but it's my first kata...
Could I know what you thought about it?
fixed it thanks!!!
Loading more items...