Answers for "Same diffrence"

0

Same diffrence

int predif=0, currdif=0; arr[3, 2, 1, 2, 3, 4, 3];
boolean test=false;
arr[0]-arr[1] = predif;
for(int i = 0; i < arr.length-1; i++){
	arr[i]-arr[i+1] = currdif;
    if(currdif==predif){
    test=true;
    }else{
    test=false;
    break;
    }predif=currdif;
}
Posted by: Guest on October-04-2021

Code answers related to "Same diffrence"

Browse Popular Code Answers by Language