Horrible Queries

You will be given an array A of n integers. All elements of the array are between 1 and 50 (inclusiv…

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”.

Please update the input statement.

1 Like

Sorry @edge555. And, thank you for reporting this. The problem statement has been updated.