Please help with the Pronect Euler: problem 480

Please help with the Pronect Euler: problem 480
0

#1

I have no idea what I should do with it. :frowning:
https://learn.freecodecamp.org/coding-interview-prep/project-euler/problem-480-the-last-question/
@discobot


#2

#3

The formatting is messy but if you read slowly you can still understand it.

Find W(P(legionary) + P(calorimeters) - P(annihilate) + P(orchestrated) - P(fluttering)).

Give your answer using lowercase characters (no punctuation or space).

The “function” you are given is made up of W function and P functions.
You need to understand what each function does.

For eg. P is used to find the Position of the given word in the dictionary of generated words.
W is used to find the Word at the given position in the dictionary.

The dictionary is an ordered and numbered list of words created from the hardcoded phrase in the challenge which is “thereisasyetinsufficientdataforameaningfulanswer”
And they also said that the longest word(s) in the dictionary are 15 letters long.

So given the above, you will need to (roughly):

  • create a sorted dictionary of words that are made up of all available letters in the given phrase
  • provide two lookup functions called W and P as described
  • return the value of the given composite functional term
    W(P(legionary) + P(calorimeters) - P(annihilate) + P(orchestrated) - P(fluttering)).