Data Structures and Algorithms (DSA) Solutions

Welcome to the repository of Data Structures and Algorithms (DSA) problems and solutions. The goal of this repository is to provide various code solutions for DSA problems using C and C++. Each code follows a specific pattern for clarity and ease of understanding.

Prerequisites

To run and test the code in this repository, you need to have MinGW installed on your system.

Installation of MinGW

Follow this MinGW Installation Guide to set up MinGW on your PC.

Compile and Run the Code

For C++ Programs:

To compile a C++ file (filename.cpp), use the following command:

g++ filename.cpp -o filename_without_extension.exe

After compiling, you can run the program:

./filename_without_extension.exe

For C Programs:

To compile a C file (filename.c), use the following command:

gcc filename.c -o filename_without_extension.exe

Then, run the program:

./filename_without_extension.exe

Code Pattern

All the codes in this repository follow a consistent structure, focusing on clean and understandable code. You can refer to any existing code to understand the standard style used throughout the repository.

Contribution Guidelines

If you'd like to contribute:

  1. Fork the repository.
  2. Clone your fork to your local machine.
  3. Make your changes.
  4. Submit a pull request for review.

We encourage you to provide clear comments and maintain the coding structure while solving DSA problems.