Programmers / Remove Smallest Number
Problem
- Link
- Description
- Return an array with the smallest value removed from a number array
- Type
- X
Solution 1
| |
- Description
- First find the smallest value, then remove it from the array
- Time Complexity
- O(len(arr))
- Two for loops of size len(arr)
- Space Complexity
- O(len(arr))
- Memory usage proportional to len(arr) for function input