Find the smallest number in an array
EasyGiven an array of integers, find the smallest number in the array.
For example, given the input
[2, 1, 7, 9]
Your function should return
1Try it first
Solution
7 Essential Arrays Coding Interview Problems
Master Arrays by trying the coding challenges below.
- 1.Trade stock onceEasy
- 2.AdditionEasy
- 3.Find the smallestEasy
- 4.Sort colorsMedium
- 5.Reorganize numbersHard
- 6.Maximum subarrayHard
- 7.Container of waterHard
