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.
how did you deduce the quadratic equation based on the table?
i am not able to figure out that
The best way to figure the problem out mathematically is to make a table of the values and find some patterns, although I did need to use cubic regression on a calculator...
#Calc
Whats the math behind this?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Those two test cases are asking for the INDEX of the lowest value. It dosen't want to know what the lowest value IS, it just wants to know WHERE it is.
Default test cases will not work for the correct solution, the first checks for a low value thats not in the list, second checks for the lowest (fair), third check for the second lowest in the same list (what?).
For a 7kyu challenge (these are mainly aimed at beginners), thats not a good idea.