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

 

srp4379@lausd.net quiz2 > minMaxProduct
prev  |  next  |  chance

public int minMaxProduct(int[] nums). Given an array of integers, find the largest and smallest values and return their PRODUCT.


minMaxProduct([3, 4, 5]) → 15
minMaxProduct([5, 4, 3, 2, 1]) → 5
minMaxProduct([-6, 5, 7, 0, 3]) → -42

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

public int minMaxProduct(int[] nums) { }

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

Copyright Nick Parlante 2017 - privacy