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

 

abraskin@mbusd.org > leastValue
prev  |  next  |  chance

Given an array of ints, return the least value.


leastValue([3, 2, 4, 5, 1]) → 1
leastValue([1, 2, 3, 4, 5]) → 1
leastValue([5, 4, 3, 2, 1]) → 1

...Save, Compile, Run (ctrl-enter)

public int leastValue(int[] arr) { }

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: 250

Copyright Nick Parlante 2017 - privacy