FFT

Full form of FFT is Fast Fourier Transformation. Fast Fourier Transformations are widely used for ma…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

Hey @hjr265 look into the submission no 349916.
When I used custom input and ran my code with sample inputs it shows

But when I submitted the code it shows

Why?

My code is alright. Checked with different cases. Toph Custom Input also said it’s right.

2 Likes

Thanks for reporting this.

The test cases had CRLF line endings. It has been fixed and your submissions have been rejudged.

What is CLRF line endings?

On Windows, a new line is represented using two characters: CR (carriage return) and LF (line feed). On Unix-like systems it is just LF.

This means if an input file contains CRLF line endings, and you are using something like fgets to read a line, then you will have CR (i.e. ‘\r’) as a part of the string.

This is why we convert line endings for all input/output files in Toph to LF.

Some of the older problems may still have CRLF line ending as the conversion functionality didn’t exist back then in Drafts.

1 Like

You should make this post a wiki.