Sort by


  • Binary Tree

    Binary tree in C++

    Simple, may not be the best implementation there is. Contains functions for inserting, deleting, finding the next and previous values, checking if a node is a leaf, printing, searching, counting the number of nodes, etc.

    Also contains a main with examples. Nice for beginners.

    by cohenman on 29 May 11
    0
    551 downloads
    0
  • Doubly linked list algorithm in C++

    Doubly linked list in C++. A simple implementation that includes a few simple features:

    Adding a node, erasing a node, searching a node, counting the number of nodes in the list, printing the list by a recursive function, printing the list iteratively and printing the list in reverse order.

    The nodes hold only integers as data but this can be generalized easily.

    by Mr on 12 May 11
    0
    571 downloads
    0