Welcome to my data structures and algorithms repository! This repository contains solutions to various problems on different platforms (e.g., LeetCode, HackerRank, etc.).
The repository is organized as follows:
- Basics: Contains folders for each programming language used in the problem solutions. For example:
Java
,Python
,C++
. - LeetCode: Holds individual problems on LeetCode platforms.
Note: Will add more problems from different Problems.
data-structures-and-algorithms/
Basics
|--- 1. Data Type & Operators
|---|--- Q1. Hello World
|---|---|--- Java
|---|---|---|--- Aashish.java
|---|---|---|--- Palak.java
|---|---|---|--- Vatsal.java
|---|---|--- readme.md
|---|--- Q2. Hello World -4
|---|---|--- Java
|---|---|---|--- Palak.java
|---|---|---|--- Vatsal.pr.3.Java
|---|---|--- readme.md
|--- 2. If Else...
LeetCode
|--- Q1342. Number of Steps to Reduce a Number to Zero
|---|--- Java
|---|---|--- aashish.java
|---|--- JavaScript
|---|---|--- aashish.js
|---|--- readme.md
|--- Q1480. Running Sum of 1d Array
|---|--- Java
|---|---|--- Java.java
|---|--- JavaScript
|---|---|--- JavaScript.js
|---|--- readme.md
- Choose a problem from the
problems
folder that you'd like to solve. - Select a programming language from the
languages
folder and follow the guidelines for that language. - Write your solution in the specified format (e.g., as described below).
- Save the file with your name as the filename, followed by the problem number. For example:
aashish.java
.
To store a solution:
- Create a new branch for the specific problem you're solving.
- Place your solution in the corresponding folder within
languages
(e.g.,Java/aashish.java
). - Commit and push your changes to your GitHub repository.
This repository is open to contributions! If you'd like to add a new problem or improve existing solutions, feel free to submit a pull request.
To contribute a new problem:
- Create a new folder within the
problems
directory for the specific platform. - Add the problem description and any relevant details (e.g., link to the original problem).
- Submit a pull request with your changes.
This repository is licensed under the MIT License.
If you have any questions or would like to collaborate, please don't hesitate to reach out!
To run or write the code, use the Scaler Topics online compilers:
Java Online Compiler.
JavaScript Online Compiler.
Python Online Compiler.
C Online Compiler.
C++ Online Compiler.