You are viewing a single comment's thread. Return to all comments →
This line is unnecessary due to the fact that the default value of long in Java is 0L and there is no need for assigning them again to 0.
for(int i=0;i<n;i++) arr[i]=0;
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
This line is unnecessary due to the fact that the default value of long in Java is 0L and there is no need for assigning them again to 0.
for(int i=0;i<n;i++) arr[i]=0;