Search:

Type: Posts; User: jps

Search: Search took 0.07 seconds.

  1. Replies
    8
    Views
    5,655

    Re: get the average of the linked list

    Lets drop the code back to pseudo-code and analyze the algorithm.

    while ( pointer is NOT null )

    // do some things
    // else do some things
    // ok that is enough doing

    Now that pointer is...
  2. Replies
    8
    Views
    5,655

    Re: get the average of the linked list

    If you are asking how to get the average of the elements of a linked list, the answer is to add every element to a total and divide by the number of elements.

    Dividing by 2 only gives the average...
Results 1 to 2 of 2