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

 

jebbert@volusia.k12.fl.us > mar7_2017_HL_fullBubbleSort
prev  |  next  |  chance

Write a method that performs a full bubble-sort on the array 'nums' and returns a new fully sorted array. Note that you COULD solve this problem using any sorting method of your choice, but a bubble-sort is probably the easiest one to use.


mar7_2017_HL_fullBubbleSort([17436]) → [17436]
mar7_2017_HL_fullBubbleSort([853, 5231, 435, 867, 354, 745, 125, 835, 3445, 8764, 24356]) → [125, 354, 435, 745, 835, 853, 867, 3445, 5231, 8764, 24356]
mar7_2017_HL_fullBubbleSort([142, 325, 893, 40, 70, 204]) → [40, 70, 142, 204, 325, 893]

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

public int[] mar7_2017_HL_fullBubbleSort(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: 290

Copyright Nick Parlante 2017 - privacy