This repository contains solutions to various pattern questions along with detailed explanations and notes.
S.No | Pattern | Problem Link 🔗 | Solution 💡 | Notes 📝 | Test Files 🧪 |
---|---|---|---|---|---|
1 |
|
Problem | Solution | Notes | Test |
2 |
|
Problem | Solution | Notes | Test |
3 |
|
Problem | Solution | Notes | Test |
4 |
|
Problem | Solution | Notes | Test |
5 |
|
Problem | Solution | Notes | Test |
6 |
|
Problem | Solution | Notes | Test |
7 |
|
Problem | Solution | Notes | Test |
8 |
|
Problem | Solution | Notes | Test |
9 |
|
Problem | Solution | Notes | Test |
10 |
|
Problem | Solution | Notes | Test |
11 |
|
Problem | Solution | Notes | Test |
12 |
|
Problem | Solution | Notes | Test |
13 |
|
Problem | Solution | Notes | Test |
14 |
|
Problem | Solution | Notes | Test |
15 |
|
Problem | Solution | Notes | Test |
16 |
|
Problem | Solution | Notes | Test |
17 |
|
Problem | Solution | Notes | Test |
18 |
|
Problem | Solution | Notes | Test |
19 |
|
Problem | Solution | Notes | Test |
20 |
|
Problem | Solution | Notes | Test |
21 |
|
Problem | Solution | Notes | Test |
22 |
|
Problem | Solution | Notes | Test |
All the tests for the above problems are located in the tests
directory and are written using Jest.
npx jest
npx jest -- --findRelatedTests tests/filename.test.js
Replace filename.test.js
with the name of the specific test file you want to run.
For example:
npx jest -- --findRelatedTests tests/Pattern_05.test.js
-
You can create it using the following command:
npm init -y
-
Add the following configuration to your
package.json
:"directories": { "test": "tests" }
-
Run tests using the commands mentioned above.