https://github.com/saurabhrkp/problem-solving
Solving Problem in JavaScript
https://github.com/saurabhrkp/problem-solving
excercises javascript nodejs problem-solving
Last synced: 7 months ago
JSON representation
Solving Problem in JavaScript
- Host: GitHub
- URL: https://github.com/saurabhrkp/problem-solving
- Owner: Saurabhrkp
- Created: 2020-03-14T11:45:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-28T09:44:18.000Z (almost 5 years ago)
- Last Synced: 2025-01-25T06:24:57.566Z (9 months ago)
- Topics: excercises, javascript, nodejs, problem-solving
- Language: JavaScript
- Homepage:
- Size: 3.76 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Problem Solving Practice
In this repository I have saved all my solution with their problem statement.
## Getting Started
Install Node.js form [Official Site](https://nodejs.org/en/download/)
Git clone or Download the Zip and unzip it.
### Prerequisites
Install Dependencies by running
```
npm install
```## Running the programs
Navigate to folder of program which you want to run as
```
cd folder/node program.js
```## Folder Structure
- 📂 __[\\Problem\-Solving](https://github.com/Saurabhrkp/Problem-Solving)__
- 📂__[Add Value to Find K in Array](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Add%20Value%20to%20Find%20K%20in%20Array)__
- ⚡ [AddUptoK.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Add%20Value%20to%20Find%20K%20in%20Array/AddUptoK.js)
- [Problem Statement.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Add%20Value%20to%20Find%20K%20in%20Array/Problem%20Statement.png)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Add%20Value%20to%20Find%20K%20in%20Array/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Add%20Value%20to%20Find%20K%20in%20Array/Solution.jpeg)
- 📂 __[Char in end of Words](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Char%20in%20end%20of%20Words)__
- ⚡ [EndOfWords.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Char%20in%20end%20of%20Words/EndOfWords.js)
- [Problem Statement.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Char%20in%20end%20of%20Words/Problem%20Statement.png)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Char%20in%20end%20of%20Words/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Char%20in%20end%20of%20Words/Solution.jpeg)
- 📂 __[Check for IPv4](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Check%20for%20IPv4)__
- [Problem Statement.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Check%20for%20IPv4/Problem%20Statement.png)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Check%20for%20IPv4/README.md)
- [Solution.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Check%20for%20IPv4/Solution.png)
- ⚡ [checkForIPV4.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Check%20for%20IPv4/checkForIPV4.js)
- 📂 __[Length Encoding](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Length%20Encoding)__
- [Problem Statement.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Length%20Encoding/Problem%20Statement.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Length%20Encoding/README.md)
- ⚡ [RunLengthEncoded.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Length%20Encoding/RunLengthEncoded.js)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Length%20Encoding/Solution.jpeg)
- ⚡ [MatrixWithPrompt.js](MatrixWithPrompt.js)
- 📂 __[Longest Subsequence](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Longest%20Subsequence)__
- ⚡ [LongestSubsequence.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Longest%20Subsequence/LongestSubsequence.js)
- [Problem Statement.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Longest%20Subsequence/Problem%20Statement.png)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Longest%20Subsequence/README.md)
- [Solution.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Longest%20Subsequence/Solution.png)
- 📂 __[Maximum Possible Value](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Maximum%20Possible%20Value)__
- ⚡ [MaximumPossibleValue.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Maximum%20Possible%20Value/MaximumPossibleValue.js)
- [Problem Question.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Maximum%20Possible%20Value/Problem%20Question.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Maximum%20Possible%20Value/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Maximum%20Possible%20Value/Solution.jpeg)
- ⚡ [NumberGuessing.js](NumberGuessing.js)
- 📂 __[Pattern Pyramid](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Pattern%20Pyramid)__
- ⚡ [PatternPyramid.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Pattern%20Pyramid/PatternPyramid.js)
- [Problem Statement.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Pattern%20Pyramid/Problem%20Statement.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Pattern%20Pyramid/README.md)
- [Solution.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Pattern%20Pyramid/Solution.png)
- 📂 __[Prime in a range](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Prime%20in%20a%20range)__
- [Problem Statement.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Prime%20in%20a%20range/Problem%20Statement.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Prime%20in%20a%20range/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Prime%20in%20a%20range/Solution.jpeg)
- ⚡ [primeNumberTillN.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Prime%20in%20a%20range/primeNumberTillN.js)
- 📂 __[Product of Array expect on i](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Product%20of%20Array%20expect%20on%20i)__
- [Problem Statement.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Product%20of%20Array%20expect%20on%20i/Problem%20Statement.png)
- ⚡ [ProductInArray.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Product%20of%20Array%20expect%20on%20i/ProductInArray.js)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Product%20of%20Array%20expect%20on%20i/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Product%20of%20Array%20expect%20on%20i/Solution.jpeg)
- [README.md](README.md)
- 📂 __[Search Number in Matrix](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Search%20Number%20in%20Matrix)__
- [Problem Statement.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Search%20Number%20in%20Matrix/Problem%20Statement.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Search%20Number%20in%20Matrix/README.md)
- ⚡ [SearchNumberInMatrix.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Search%20Number%20in%20Matrix/SearchNumberInMatrix.js)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Search%20Number%20in%20Matrix/Solution.jpeg)
- 📂 __[Shared words in two Strings](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shared%20words%20in%20two%20Strings)__
- [Problem Statement.png](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shared%20words%20in%20two%20Strings/Problem%20Statement.png)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shared%20words%20in%20two%20Strings/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shared%20words%20in%20two%20Strings/Solution.jpeg)
- ⚡ [wordsSharedBetween.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shared%20words%20in%20two%20Strings/wordsSharedBetween.js)
- 📂 __[Shift Char by N](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shift%20Char%20by%20N)__
- [Problem Statement.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shift%20Char%20by%20N/Problem%20Statement.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shift%20Char%20by%20N/README.md)
- ⚡ [ShiftLetterByN.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shift%20Char%20by%20N/ShiftLetterByN.js)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Shift%20Char%20by%20N/Solution.jpeg)
- ⚡ [SimpleMatrix.js](SimpleMatrix.js)
- 📂 __[String to pattern](https://github.com/Saurabhrkp/Problem-Solving/tree/master/String%20to%20pattern)__
- [Problem Statement.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/String%20to%20pattern/Problem%20Statement.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/String%20to%20pattern/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/String%20to%20pattern/Solution.jpeg)
- ⚡ [StringToPattern.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/String%20to%20pattern/StringToPattern.js)
- 📂 __[Union of Array](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Union%20of%20Array)__
- [Problem Statement.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Union%20of%20Array/Problem%20Statement.jpeg)
- [README.md](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Union%20of%20Array/README.md)
- [Solution.jpeg](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Union%20of%20ArraySolution.jpeg)
- ⚡ [unionOfArrays.js](https://github.com/Saurabhrkp/Problem-Solving/tree/master/Union%20of%20Array/unionOfArrays.js)
- [index.js](index.js)
- 🔒 [package\-lock.json](package-lock.json)
- ⭐ [package.json](package.json)## Versioning
We use [Git](https://git-scm.com/) for versioning. For the versions available, see the [tags on this repository](https://github.com/Saurabhrkp/Problem-Solving/tags).
## Authors
- **Saurabh Patel** - _Initial work_ - [Saurabhrkp](https://github.com/Saurabhrkp)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
- Hat tip to anyone whose code was used
- Inspiration