about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy