Please add the problems to practice section.
Will there be editorials for these question?
what was the logic for the problem âSpeedâ, can someone help me?
Why?
I got it I missed a pq.empty() condition but the checker should show RE and it showed TLE
find maximum speed for all possible consecutive intervals from 0 to T
ans is sum of length of interval*maximum speed
Yes, we will be posting the editorials soon.
There can be floating point errors with large values. Although there are functions like sqrtl() for handling that but I prefer to do calculations using integers.
Can anyone explain for the first question(EQUAL)
ans for this test case
4
2 4 4 4
shouldnât it be 2 ?
but the o/p is 4 why ?
This is an invalid test case. The readings need to be unique .
Please read the problem carefully. It was boldly mentioned the readings are unique. The final value that needs to be equal(equal value), may or may not belong to the array.
Sorry, yes, you are right.
Okay, but someone to inbox me, I wanna ask something