求助,一道面试题
public int sum(int a[],int n){
return n>0_______________;
}
在横线上填一句话,要求返回数组的前n项和......
据说是很简单的一个语句,不是if,for这些......
俺楞是没想出来......
public int sum(int a[],int n){
return n>0_______________;
}
在横线上填一句话,要求返回数组的前n项和......
据说是很简单的一个语句,不是if,for这些......
俺楞是没想出来......