can one derive the fourier transform by taking the inverse fourier transform which can be derived basically from common sense, and then solving for F()? I couldn't get anywhere with that approach
> I think Randall has a time machine and checks Reddit a couple years ahead for the phrase "I don't have a relevant xkcd!" and then comes back and makes it to prevent that timeline from occurring.
Your task is to palindromize a string as follows:
Take the string.
abcde
Reverse it.
edcba
Remove the first letter.
dcba
Glue it onto the original string.
abcdedcba
But here's the catch: since this challenge is about palindromes, your code itself also has to be a palindrome.
Remembe...
Given a palindrome generated according to this challenge, depalindromize it.
Test cases
abcdedcba -> abcde
johncenanecnhoj -> johncena
ppapapp -> ppap
codegolflogedoc -> codegolf
Remember, this is code-golf, so the code with the fewest bytes wins.
All in all it is worth noting that the fourier transform and its inverse are basically the same thing. (in the discrete aswell in as in the continuous case)
The idea of wrapping a signal around a circle (with a given frequency/angular velocity) and averaging (=sum or integral) the points to get that share of the signal is a really helpful image.
If you got that, it is easy to see that the inverse basically consists of doing the same again.