为什么代码的19~21行的 i 换成 j 代码就能正常通过,而用 i 就会显示“Memory Limit Exceeded”
i是查找的下界,j是查找的上界一旦调换,下一层递归的r就会小于l,那么会导致无限递归