educative.io

Code of solution with searching for non-negative number

Hi could you post the code of solution with searching for non-negative number please? Would be nice to solve a problem with multiple solutions. Thank you.

1 Like

It seems that one person in the discussion posted a better answer that can solve the problem without searching for non-negative number. So the tutor modified the code but didn’t modify the text.