Search:

Type: Posts; User: steel55677

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    2,817

    Re: Selection sort code needs reverse

    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...
  2. Replies
    7
    Views
    2,817

    Re: Selection sort code needs reverse

    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...
  3. Replies
    7
    Views
    2,817

    Selection sort code needs reverse

    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--) {...
Results 1 to 3 of 3