I'm not a python guy, but wouldn't this scan the entire array twice? For a large array that would be wasteful. It's probably better to design a single loop and track the min and max values, right?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm not a python guy, but wouldn't this scan the entire array twice? For a large array that would be wasteful. It's probably better to design a single loop and track the min and max values, right?