Learn Computer Science programming - C# and C++ Algorithms

 
Data Structures in C#

The following examples are implementations of the popular data structures in C#.

A data structure is a particular way of storing and organizing data so that it can be used efficiently.

Different types of data structures are suited for different kinds of applications. Some are highly specialized to specific tasks. For example, hash tables are best suited to look up identifiers.


Here are a select few with full implementation. All you have to do is copy and paste the code and run them step by step.

Linked List

Queue
Stack

Doubly-Linked List

Stack-based array


Binary Tree
Hashtable