Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    2,841

    Re: swapping nodes in a linked list

    What methods does your linked list have that could be used for swapping?


    As arguments to the swap method: swap(node1, node2);


    As args: swap(5,4);

    If the findNodeAtIndexN method returns...
  2. Replies
    3
    Views
    2,841

    Re: swapping nodes in a linked list

    Is the linked list class your code or the one from the Java SE? That would determine what methods are available to do the swap.

    You ask the questions.
    How to swap elements in the list based...
Results 1 to 2 of 2