This repository contains solutions to various Data Structures and Algorithms (DSA) problems. The goal is to practice and improve problem-solving skills by implementing efficient algorithms in C++.
Follow these steps to set up your environment and start using this repository:
Open your terminal or command prompt and run:
git clone https://github.com/roshan-metrix/DSA.git- Visit https://code.visualstudio.com/
- Download and install VS Code for your operating system.
- Open VS Code.
- Go to Extensions (
Ctrl+Shift+X). - Search for "C++" and install the C/C++ extension by Microsoft.
- Visit https://www.mingw-w64.org/downloads/
- Download the installer for your system.
- Run the installer and follow the instructions to install MinGW.
- Find the path to the
binfolder inside your MinGW installation (e.g.,C:\mingw-w64\bin). - Open Control Panel > System > Advanced system settings > Environment Variables.
- Under "System variables", find and edit the
Pathvariable. - Add the path to your MinGW
binfolder. - Click OK to save.
Open a new command prompt and run:
g++ --versionYou should see the installed version of g++.
- Open the cloned repository folder in VS Code.
- Browse the folders for different topics.
- Open any
.cppfile and pressF5or use the terminal to compile and run:
g++ filename.cpp -o output
./output- Solutions to popular DSA problems
- Well-commented C++ code
- Organized by topic (arrays, linked lists, trees, graphs, etc.)
Feel free to fork the repo and submit pull requests for improvements or new solutions.
This project is licensed under the MIT License.