jeudi 29 novembre 2018

How to optimizize this code? i am noob :d

i have a code

for(int i = 0; i < n; i++)
if ( 1 == arr[i+2-r] and   1 == arr[i+1-r] and 1 == arr[i-r] and  1 == arr[i] and  1 == arr[i-1+r] and  1 == arr[i-2+r])
 {
     arr2 = 1; 
 }

i need help. How to optimizize this code? how to reduce this cut

Aucun commentaire:

Enregistrer un commentaire