ChallengeRocket
  • Challenges
  • Find jobs
  • Candidate Hub
  • Employers / Post a Job
  • Log in
  • Sign up now
Menu
  • Home
  • Challenges
  • Max Difference

Max Difference

Max Difference

Before you start the test, check out our tutorial challenge

~5MIN
Start: Oct 22, 2019
SKILL PRACTICE CHALLENGE
  • Challenge outline
  • Tips
  • Leaderboard
Max Difference
  • Challenge outline
  • Tips
  • Leaderboard

Challenge overview

Hello and welcome to the challenge!


Write a code that finds the max difference between two successive elements of the given array after sorting.

Examples

  • solve([1,2,5,11,3]) -> 6

Input

  • an array with integer numbers

Output

  • the max difference between elements properly found

Constraints

  • 0 < length of the given array < 100


You can solve this programming contest in Ruby, JavaScript, Python and many other languages. If you want, you can also take part in other Challenges. Below you can find some of them:


  • Complementing Binary Numbers
  • Numbers And Strings
  • Bigger Number With The Same Digits


Have fun and good luck! :)

By using our site, you agree to challengerocket's use of cookies in accordance with our privacy policy.
ChallengeRocket
Tech talent
Challenges Blog Find jobs Candidate Hub
Companies
Business HR Blog Pricing
Challengerocket
FAQ EU Join Us Contact Us
Copyright © 2022 ChallengeRocket. All rights reserved.
Privacy Terms and Conditions Service status

Log in

Don’t have account?
Create a candidate account
or

Forgot your password?

Log in

Don’t have account?
Create an employer account

Forgot your password?

Create a candidate account

Already have an account?
Log in
or
  • At least 8 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not a candidate?  Sign up as an employer

Reset your password

Remember your password? Log in Log in for business

Create an employer account

Sign up for free.
Select the best plan to publish job ofers & challenges.

Company name introduced here will be visible on your job ads.
  • At least 8 characters
  • Uppercase Latin characters
  • Lowercase Latin characters
  • At least one number or symbol

Not an employer?  Sign up as a candidate