DSA
A structured repository of Data Structures and Algorithms problems solved in C++, complete with clear explanations and solution breakdowns. Designed as a learning platform to simplify DSA concepts and serve as a personal reference for mastering coding interviews and competitive programming.
Install / Use
/learn @Roshan-Metrix/DSAREADME
DSA Practice & LeetCode solved Problems
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++.
Getting Started
Follow these steps to set up your environment and start using this repository:
1. Clone the Repository
Open your terminal or command prompt and run:
git clone https://github.com/roshan-metrix/DSA.git
2. Install Visual Studio Code (VS Code)
- Visit https://code.visualstudio.com/
- Download and install VS Code for your operating system.
3. Install C++ Extension for VS Code
- Open VS Code.
- Go to Extensions (
Ctrl+Shift+X). - Search for "C++" and install the C/C++ extension by Microsoft.
4. Install MinGW (C++ Compiler for Windows)
- Visit https://www.mingw-w64.org/downloads/
- Download the installer for your system.
- Run the installer and follow the instructions to install MinGW.
5. Set Up Environment Variables (Windows)
- 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.
6. Verify Installation
Open a new command prompt and run:
g++ --version
You should see the installed version of g++.
7. Run and Test Solutions
- 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
Features
- Solutions to popular DSA problems
- Well-commented C++ code
- Organized by topic (arrays, linked lists, trees, graphs, etc.)
Contributing
Feel free to fork the repo and submit pull requests for improvements or new solutions.
License
This project is licensed under the MIT License.
Related Skills
oracle
347.2kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
prose
347.2kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Command Development
108.0kThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
Plugin Structure
108.0kThis skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.
