We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This code seems slow because after having iterated through every integers passed in to get a, you're iterating through a again to find val > 0, cal < 0 val == 0. This is what I did:
Plus Minus
You are viewing a single comment's thread. Return to all comments →
This code seems slow because after having iterated through every integers passed in to get a, you're iterating through a again to find val > 0, cal < 0 val == 0. This is what I did: