in the given video he is finding this and intially our ms=0, and cs is also 0 ???
max(cs,ms) so in this part ms will always be zero
like max(cs,0) which means cs will always be bigger,
which is not correct, i did not see in the video where he update ms value before finding the max(cs,ms) will you please explain it to me with the help of code