Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3839 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | Geothermal | 3569 |
8 | ecnerwala | 3494 |
9 | Um_nik | 3396 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | Um_nik | 164 |
2 | -is-this-fft- | 160 |
2 | maomao90 | 160 |
4 | atcoder_official | 158 |
4 | cry | 158 |
4 | awoo | 158 |
7 | adamant | 155 |
8 | nor | 154 |
9 | TheScrasse | 153 |
10 | Dominater069 | 152 |
Hi, I'am unable to solve the following problem (https://erdos.sdslabs.co/problems/64). Any hints or ideas are welcomed.
Name |
---|
Do you know how polynomial interpolation works? If there's a polynomial $$$P$$$ with degree $$$k$$$ and you have value of $$$f(x)$$$ for $$$k + 1$$$ different $$$x$$$, then the polynomial is uniquely determined. If you only need one example of such $$$m$$$, then maybe it's enough to just try different values of $$$m$$$. If you need all such $$$m$$$ it might be trickier, though.
Yes, I do know Polynomial Interpolation and i was trying the same , i made a lot of tries but couldn't get it correct and i thought i wasn't going in the right direction . Thanks for replying , I will try again to figure out tricky part again.
Well what was the problem? Did no value of $$$m$$$ work? Or do you think you had a bug somewhere?
I'd suggest next time you make such a blog, you should say that you already tried polynomial interpolation with different values of $$$m$$$, but it didn't work because [reason]. It makes it so much easier to help you. Besides if you had said that we wouldn't have this conversation.