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.
This comment is hidden because it contains spoiler information about the solution
I cant see enough test case answers to debug my solution
So as it turns out floating points go to 18 decimal places which is more than enough for the problem - my problem was python was slightly underestimating the length of each interval which was adding extra step onto my loop! I hope this helps someone!
I have the right fomula but I'm struggling to get my answer precise enough. I've tried to use float a lot. My question is - how many decimal places do calculations with floating point values preserve by default?
Thanks for the info!! I'll have another go!
are we aming for O(n) or O(n2) here?
I'm a bit confused here... are we supposed to set the source and destination as global variables, so they can be modified by our function? Is that what the question is asking?
I think you should add another radii for the second satellite, otherwise good problem I like the physics ones!!
Execution Timed Out (12000 ms) again!
At first I solved the probelem using the obvious for loop pitfall they were expecting, now ive solved it by creating an upper triangle matrix and summing the rows - which gave me the same error.
Im outta ideas, can anyone point me in the right direction please :)
Ah i see, thanks a lot!
Hey guys, so my code has passed 45/46 tests, failing the 'waterbomb function test - tiny fires'. Does anybody know what the input for this is so can figure out whats going wrong! Thanks a lot!
Hey mine is working for letters only using .count. However not for symbols as they are counted as 0. Is there a version of .count which counts any character in a string? I can't seem to find one. Thanks!