Results 1 to 2 of 2

Thread: Linked list

  1. #1
    rosh72851 is offline Member
    Join Date
    Sep 2008
    Rep Power

    Default Linked list

    Hi I have a problem. I have to create a 'recursive loop' to search each node in a single linked list for the smallest value and return the node before that node.
    I was hoping to solve this problem by using the previous and current nodes.

    Now my problem is if the value appears in the middle of the list, then how can I still come back to the prev node of the smallest value after searching the whole list.
    Last edited by rosh72851; 02-05-2009 at 06:19 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power

Similar Threads

  1. Linked List integer list
    By igniteflow in forum Advanced Java
    Replies: 1
    Last Post: 12-10-2008, 08:53 PM
  2. Linked List removeAll Help
    By unc123w in forum New To Java
    Replies: 13
    Last Post: 09-30-2008, 02:41 PM
  3. Linked List help
    By neobie in forum New To Java
    Replies: 8
    Last Post: 12-22-2007, 03:15 AM
  4. Linked List
    By rnavarro9 in forum New To Java
    Replies: 0
    Last Post: 11-29-2007, 03:42 AM
  5. Help with linked list
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 07:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts