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.
yeah i think so too. it doesnt really match the test criteria. it should say that for ties it is sorted alphabetically from a to z.
This comment is hidden because it contains spoiler information about the solution
That's just basic school level maths that any developer knows.
Yea I definitely agree. I don't see how this would be used in most developer jobs. And I am confused as to how this is level 6.
its not that bad, just gotta know to solve the quadratic equationz
Use spoiler flag next time please.
This comment is hidden because it contains spoiler information about the solution
hey, can u help please? do u know by chance how to convert complex numbers to another type like float?
cause I wrote a quadratic equation but the output is a complex, so... dunno, maybe there is another formula without this conversion problem?
The
+v
is because of the reaction time. You have 1 second of reaction time, so if v is maybe 10 km/hr, you have travelled an extra 10 km/hr * 1 sec before you even hit the brakes. The part of the equation that isn't the+v
is the actual slowing down part.Well for one,
d
is given in meters, and you treat it as if it is a velocity. You don't convert a variable in meters to m/s. Your way of converting looks to be a conversion from km/h to m/s, which would not work in this case, asd
is in meters. Also, if you are going to convertd
to km in order to solve the equation, you must also convert gravity from m/s/s to km/h/h. Otherwise, you'll have a relatively unusable number spat out of your equation.Also, it doesn't look like a variable
G
is assigned before using it inconstant
. I'm a little confused about that.And it looks like you forgot to add the b^2 part of the quadratic equation, as a part of the determinant. I would take another look at the quadratic formula Here, make sure all of my variables are converted correctly, and try again. Also, look into slightly different ways of doing this. (You don't have to convert before you do the equation).
What are you saying about this? Do you mean that this kata's sensei should have made the argument "v" into an argument called "velocity"?
have i missed the site being renamed to mathwars? this requires absolutely no coding skills
wouldnt this return floating point numbers on division and fail the test, or am i missing something?