Recently I was going through the solutions of this problem. I was very surprised to see the short solutions of many Chinese coders and found out that they use a cool trick for solving this kind of problems. But I could not find anything in English on this. So I...
[Read More]