ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
How much damage did you take?
♾
both in TLE and MLE..But still grinding.. It is not accepting even in tabulation also..need to space optimization
A lot
Recently solved the “Delete and Earn” problem. Very similar problem and thus was a piece of cake for me! Funnily enough I used a queue to access the prev element for each i, where I would pop whilst the value at the front of the queue is < i - 2.
This is exactly what is meant by practicing! Sometimes you just notice very similar concepts!
that same two WA's I got.. this was tricky
memoization gave MLE, broke me
same
How much damage did you take?
♾
both in TLE and MLE..But still grinding.. It is not accepting even in tabulation also..need to space optimization
A lot
Recently solved the “Delete and Earn” problem. Very similar problem and thus was a piece of cake for me! Funnily enough I used a queue to access the prev element for each i, where I would pop whilst the value at the front of the queue is < i - 2.
This is exactly what is meant by practicing! Sometimes you just notice very similar concepts!
that same two WA's I got.. this was tricky
memoization gave MLE, broke me
same