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.
for nerds only
python
I feel dumb now
You may not a beginner anymore, but I think the complexity of this is O(n^2) where n is the len of the secret.
I use "triplets * 2" have passed.
but i don't know why use it.
letters is a list of all the different letters in the string, and the for loop is just repeatedly looking a the triplets
eg. if triplets=[[1,2],[3,4]] then letters is a list containing 1,2,3,4 in any order, and t will be [1,2] and [3,4], 4 times each
Rounding prevents correct float comparision.
Two similar values may be rouded to different results, e.g. 0.995, 0.9950000000000001 => 0.99, 1.0
Results are wrong.
Your points change direction after collision, 2nd sample test 40° -> 37.5°; 3rd sample test: 34° -> 28.5°
a=k*9.8
is acceleration in the direction of movement, but you use it as both a_x and a_yThis is the worst kata I ever seen.
How do you even come up with the solutions like this! Damn my mind sezies
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Alex, for fuck sake, when will you get the idea that he cannot fix anything he doesn't know/understand in the first place. So just explain to him what you want exactly.
And that's why you have to compare the values for approximate equality instead of coming up with bad requirements?
i'm sorry for being such a mess but its my first and i'm gaining a lot from your issues.
but that is the ans and i have asked to return ans rounded to second decimal place because it can be inconvenient if the ans differs at 4th or 5th decimal place.
Loading more items...