Yes sir,
I've looked at his pseudo code
and this what I came up with.
for (int stopInd = arr.length - 1; stopInd >= 0; stopInd--) { // for stopInd = index of last element DOWNTO 0...
Type: Posts; User: steel55677
Yes sir,
I've looked at his pseudo code
and this what I came up with.
for (int stopInd = arr.length - 1; stopInd >= 0; stopInd--) { // for stopInd = index of last element DOWNTO 0...
Here: int positionOfMax = indOfMax(arr,stopInd);
We're to write a method that finds the biggest item's index in the indofMax method.
then we're to use the indofMax method to make the range...
Hi, I've been working on this part of the code for at least 10 hours.
private static void selectionSort( int[] arr )
{
for (int stopInd = arr.length - 1; stopInd >= 0; stopInd--) {...