Search:

Type: Posts; User: Chanakya

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    9,434

    It is working fine. I was required to use...

    It is working fine.
    I was required to use selection sort. However I was wondering if the number of loop executions, the number of if statements or the number of pointers used could be reduced.
  2. Replies
    5
    Views
    9,434

    Selection Sort Link List

    Help me make this code more efficient.


    void llist::sort()
    {
    int val,val1;
    for(node *p = first, *p1, *pos; p->next != NULL; p = p->next)
    {
    val = p->info;
    pos = p;
Results 1 to 2 of 2