1385.两个数组间的距离值
作者:互联网
class Solution {
public int findTheDistanceValue(int[] arr1, int[] arr2, int d) {
int result = arr1.length;
for(int i : arr1){
for(int j : arr2){
if(Math.abs(i - j) <= d){
--result;
break;
}
}
}
return result;
}
}
标签:return,数组,int,findTheDistanceValue,距离,result,arr1,1385,arr2 来源: https://blog.csdn.net/Split_token/article/details/122709253