(i, j),判断 A[j] - A[i] == t,将符合条件的 (i, j) 以格式 [(i,j),...] 输出。给定一个一维整数数组 A 和一个目标值 t ,设计算法,在 A 中找出差为目标值的那两个整数的一对下标,需要找出所有满足条件的下标组合。
Scan the QR code below with WeChat to sign in
First-time scan will create your account automatically
请使用微信扫描下方二维码完成注册