id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

simona1@sfusd.edu searching > findMin
prev  |  next  |  chance

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)

public int findMin(int[] arr, int size){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 300 Post-solution available

Copyright Nick Parlante 2017 - privacy