3 ms·
Nitpick: The built-in min() is also O(n) on the length of the array, though it will be a bit faster as a built-in C function. You're probably right that you sh
by tveita 10y ago
Nitpick: The built-in min() is also O(n) on the length of the array, though it will be a bit faster as a built-in C function.
You're probably right that you shouldn't have reimplemented it though - knowing how to use the language and its standard library is a good indicator for real-word experience.
- _RPM 10y agoThis was for a new grad role though. I'm just about to get out of college. Looking back , I really fucked up by not using Pythonic style. The only reason I chose python is because of it's string handling capabilities, etc as opposed to C - where I'd have to implement boiler plate stuff most likely, and worry about resizing arrays, etc.