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#
- Host: GitHub
- URL: https://github.com/usamahussaindev/data_structures
- Owner: usamahussaindev
- License: mit
- Created: 2023-10-07T17:42:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T18:17:37.000Z (about 2 years ago)
- Last Synced: 2025-01-17T23:43:38.216Z (11 months ago)
- Topics: csharp, data-structure-types, data-structures, practice-programming, practice-project, programming-language
- Language: C#
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.