@@sukuna_real-u9x ya it's right...but if div2 round is happening then it can be done...bcz he explain very nicely and if he will show code then it will be much helpful
I made 2 vectors in problem A for even index elements and another for odd indexed elements and i got score of two and returned max of both. It Got Submitted Strange :) Maybe it wont run for large no of testCases
Thanks,
I was missing the intuition for Div2C. Thanks You for clarifying.
20:10 B
40:20 C
In e approach is like differentiate array right
please put the code also...and explain it also...it will be helpful.
he is a lgm, why would he do div2 if he can do the div1.
@@sukuna_real-u9x ya it's right...but if div2 round is happening then it can be done...bcz he explain very nicely and if he will show code then it will be much helpful
I made 2 vectors in problem A for even index elements and another for odd indexed elements and i got score of two and returned max of both. It Got Submitted Strange :) Maybe it wont run for large no of testCases
thats also the correct approach , only two cases max element belongs to odd index or even index m you take carepof both
thats the same thing whats shayan has done, you just used extra O(n) space for creating those two vectors