Comments

thanks got accepted :)

even after this it is giving WA 82142984

can you help me ? not able to figure out the issue (just a guess can it be due to some precision issues?)

Hi anshumankr001,

I had similar approach as yours but because of one condition i was getting wrong answer then i looked at your solution and removed that condition and it got accepted but still i didn't get why it happened.

So i tried to submit your solution itself with that change and surprisingly that also got WA but i think that condition shouldn't have any affect on the answer.

I am sharing the two links one accepted and one wrong, can you please help me out?

WRONG ONE 82039446

ACCEPTED 82039513

Only difference is that in one of solution "cur = abs(func(mid)-t);" this line is commented and in one this is not

awoo adedalic
Can you please explain the editorial of problem E (Range Deleting)? Not able to get it

no we have to solve it online

I was thinking of the same approach, but is there any another approach which is way more cleaner or efficient in terms of space and time complexity.

I have posted this on stackoverflow also link

no, in each query we are given different L, R and K

Auto comment: topic has been updated by dreamplayDaddy (previous revision, new revision, compare).

On flash_7Digit DP, 7 years ago
0

flash_7 can you please tell me how to solve problem
6.Maximum Product
by digitDp as i am not able to get what should be the states though i have already solved this question using greedy approach solution but i want to know how it can be solved using digitDp or more precisely is it solvable using digitDp approach or not?

On flash_7Digit DP, 7 years ago
0

Easy to understand solution using the same template as described in the post.
Hope it helps :)
solution