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

 

mrsdianneoc@gmail.com > selectSortOne
prev  |  next  |  chance

Do ONLY the first swap in a selection sort. There will be at least 1 element in the array.


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

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

public int[] selectSortOne(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: 201 Post-solution available

Copyright Nick Parlante 2017 - privacy