You are viewing a single comment's thread. Return to all comments →
for the last line, you don't need to use ternary operator if all you want is to return a boolean
return sum == 0;
will be suffice
Sherlock and Array
You are viewing a single comment's thread. Return to all comments →
for the last line, you don't need to use ternary operator if all you want is to return a boolean
will be suffice