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

 

andersoniii.edwin@cusd80.com > sortMyIntegers
prev  |  next  |  chance

Given an array of integers, write the method to sort the array into numerical order. This method should incorporate nested loops and simulate a bubble sort.


sortMyIntegers([5, 4, 3, 2, 1]) → [1, 2, 3, 4, 5]
sortMyIntegers([30, 40, 10, 50, 20]) → [10, 20, 30, 40, 50]
sortMyIntegers([23, 4, 0, 2, 9]) → [0, 2, 4, 9, 23]

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

public int[] sortMyIntegers(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: 111

Copyright Nick Parlante 2017 - privacy