Introduction
It is an easy level array algorithm. I like the algorithm since it is good training. I made two mistakes and then I figured out things by online judge. One is diff/ 2, not diff, and then second one is to keep the original order, if(sumA > sumB) enclosed block, I need to define the order of integer order to reverse the order.
My practice
Here is the link on Leetcode discuss I shared.
No comments:
Post a Comment