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

 

arrayLargestPairDifference


An array contains pairs of numbers. Examine each pair of numbers and return the greatest difference between any pair. The array contains at least two numbers and has a multiple of two numbers.


arrayLargestPairDifference([1, 2]) → 1
arrayLargestPairDifference([1, 5, 3, 6]) → 4
arrayLargestPairDifference([3, 6, 5, 1, 7, 6]) → 4

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

public int arrayLargestPairDifference(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: 10 Post-solution available

Copyright Nick Parlante 2017 - privacy