I want the algorithm for the I am given an 8-character code to which I reply with a 5-digit number. Here are a few examples of the challenge code and the correct answer

Here are the some sample outputs

Code, Correct Answer
FAPEWPQT, 17220
DGFBUVMC, 10800
MPIFCCNW, 35295
PALTIAJU, 43632
HSRAVOZL, 23088
LZYRYRZV, 37272
MMDLXPLD, 35555
QEOSADRM, 46087
RCCJHVQB, 48312
XJNHRGWD, 65928
XRICSTJM, 66816
PSAIFPII, 42528
PSAISPII, 43568

What is the algorithm? Thanks.

1 Like

Please answer this as soon as possible since I want it as my assignment tomorrow by 10:00 am morning(IST)

And this is assignment from cryptography? When you do not know the algorithm generating those numbers?

Please tell me I dont know the algorithm

Did anyone can’t get the algo of this question

are the example challenges fixed, or can you choose them arbitrarily ?

a switch-case-implemented solution answers the question, but is this acceptable ?

i think the problem statement lacks a few points that need to be explained for us to provide a complete solution.

just in case : did you try polynomial interpolation ?

PSAIFPII = 42528 and PSAISPII = 43568 made me think the fifth term is 80*x4^1. don’t you agree ?

Hi cyber
Please tell the algorithm of polynomial interpolation and how we can use in this code Please reply fast

//