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.
To run and test the code in this repository, you need to have MinGW installed on your system.
Follow this MinGW Installation Guide to set up MinGW on your PC.
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
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
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.
If you'd like to contribute:
- Fork the repository.
- Clone your fork to your local machine.
- Make your changes.
- Submit a pull request for review.
We encourage you to provide clear comments and maintain the coding structure while solving DSA problems.