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 | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
4 | atcoder_official | 161 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
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.