Giving TLE for 2 test cases

hello @mb129162

image

i think u r getting run error because of too much memory allocation.

try to do it in O(target) space complexity

i’m not getting the logic to find in 1-d array

Please tell how to approach these optimizations ?

@mb129162
pls refer this->link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.