You are viewing a single comment's thread. Return to all comments →
i believe val must be array[0] instead of 0 and loop should start from index 1. This will not break the given solution if any element is already 0
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
i believe val must be array[0] instead of 0 and loop should start from index 1. This will not break the given solution if any element is already 0