You will be given an array of length N. Then there will be Q queries. Each query will contain four i…
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”.
Recently I learned the use of ‘Compiler Optimizer Preprocessor’ (#pragma). So I wanted to solve a problem with it. I solved Change The Array problem using it. But I used ternary operator in my ACCEPTED solutioncode. Then I submitted the same code, just not using the ternary operator. Toph gave me CLE verdictcode.
@mushfiqur303 You can try to disassemble your compiled codes using a disassembler and then try to see how the compiler optimized (or didn’t optimize) the two versions.