刚学数据结构,不知道我写的程序哪里有问题,希望帮忙看看(。í _ ì。)
收起
对 i 和 j 的结束条件未做判断。当 i >= g1.length 和 j >= g2.length 时,会访问到无效的数。
报告相同问题?