Can you share some resources like the mcq questions of top mncs like goldmann sachs ,myntra etc…
Interview questions
hello @Somasree
a) prepare cs fundamentdals based mcq’s from gfg .
b) goldman also takes apti so to prepare it refer india bix
@Somasree
if seller A got X sum of medicine and seller B got Y sum of medicine then
we can write
X + Y = sum of given matrix (say S)
Y= S-X
and answer (difference between X and Y ) will be
Y-X = (S-X)-X
Y-X = S-2X
now we want to minimize this S-2X
S-2X >= 0
=> S/2 >=X
so now we have to find X which is closer to S/2 .
this boils down to standard dp problem where u have to find x closer to S/2 try this on ur own if u still face any issue ping me back.
note -> X is the sum formed by contiguos connected edges
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.


