about | help | code help+videos | done | prefs |
findMin
Write a recursive method int findMin(int[] arr, int size) that returns the minimum element in the given array. The method gets the array and its size as parameters. The array will have at least 1 element. findMin([1], 1) → 1 findMin([0, 1], 2) → 0 findMin([8, 6, 7, 5, 3, 0, 9], 7) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 300 Post-solution available
Copyright Nick Parlante 2017 - privacy