The hint video says sort them according to the abs diff of val of both arrays at a particular idx … Isnt this approach wrong becz the ques says u have to start from box 1 and cant skip any boxes and by sorting the whole concept of starting from box 1 goes away
Confusion in the hint video for this ques maximum bullets
@prabh1601
hi
acc. to the question i also feel that it should have a greedy approach
ill confirm once with my fellow TA like DP could be used to maximise amount of bullets but then the condition given in the q They have to start from box 1 and go till box N. They cannot skip any box and they cannot go back. does not permit the use of DP i
ll confirm u iif what is explained in the video correct or no
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.