An open API service indexing awesome lists of open source software.

https://github.com/usamahussaindev/data_structures

Implemented && Learn how to use and work with these fundamental data structures in C#
https://github.com/usamahussaindev/data_structures

csharp data-structure-types data-structures practice-programming practice-project programming-language

Last synced: 5 months ago
JSON representation

Implemented && Learn how to use and work with these fundamental data structures in C#

Awesome Lists containing this project

README

          

# C# Data Structures Implementation

This repository contains examples of various data structures implemented in C#. Each data structure is demonstrated in a separate file, and this README provides an overview of each data structure along with usage instructions.

## Data Structures Included

### 1. LinkedList

- **File:** `LinkedList.cs`
- **Description:** Demonstrates the usage of a doubly linked list in C#. Includes adding elements to the list and iterating through it.

### 2. HashSet

- **File:** `HashSet.cs`
- **Description:** Demonstrates the usage of a HashSet in C#. Shows how to create a set of unique elements and perform basic operations like adding, removing, and checking for existence.

### 3. SortedSet

- **File:** `SortedSet.cs`
- **Description:** Demonstrates the usage of a SortedSet in C#. Illustrates how to create a sorted set of elements and the automatic sorting behavior.

### 4. BitArray

- **File:** `BitArray.cs`
- **Description:** Demonstrates the usage of a BitArray in C#. Explains how to work with individual bits, making it useful for bitwise operations and compactly storing boolean values.

## Running the Examples

To run any of the data structure examples, follow these steps:

1. Clone this repository to your local machine:

:
```shell
git clone https://github.com/usamahussaindev/data_structures
```

2. Navigate to the directory of the specific data structure you want to run (e.g., `DataStructures`).

3. Compile and run the example using the C# compiler (e.g., `csc` or `dotnet`):

## Contributions

Contributions to this project are welcome! If you have improvements, additional data structures, or corrections to the examples, please feel free to create a pull request.

## License

This project is licensed under the MIT License.