I want to implement a Set in C. Is it OK to use a linked list, when creating the SET, or should I use another approach ?
How do you usually implement your own set (if ne
std::set is often implemented as a red black tree: http://en.wikipedia.org/wiki/Red-black_tree
std::set
This approach will give you much better complexity on all the listed operations.