Search:

Type: Posts; User: potaters; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    9
    Views
    969

    Re: c++ doubly linked list challenge

    Elegant solution, schauerlich, deffinetely "cleaner" than mine.

    I'm just curious though, how can we reverse a normal linked list? Can it be done in O(1) efficiency? (I don't think so!)

    The...
  2. Replies
    9
    Views
    969

    Re: c++ doubly linked list challenge

    It's not homework. And my approach of the solution was adding a boolean variable isReversed, which will be set to false for all class instances, and then for the reverseList() function , we do:

    ...
  3. Replies
    9
    Views
    969

    c++ doubly linked list challenge

    Hey guys, this is my first post on ubuntu forums. I'm really glad to be here!

    Anyways, here's a c++ challenge I read somewhere a long time ago:

    Write a doubly linked list class with all the...
Results 1 to 3 of 3