Welcome to my LeetCode Code Resolution Repository! Here, you'll find a personal collection of solutions to various LeetCode problems that I've tackled. This repository serves as a reflection of my coding journey, showcasing my problem-solving skills and approaches.
Each solution is a result of careful thought and dedication, aimed at not just solving the problem but also understanding the underlying concepts. While these solutions are tailored to my style and understanding, I hope they provide insights and inspiration to others embarking on their own coding challenges.
Exercise | Difficulty |
---|---|
1. Two Sum | Easy |
26. Remove Duplicates from Sorted Array | Easy |
41. First Missing Positive | Hard |
2620. Counter | Easy |
2621. Sleep | Easy |
2622. Cache With Time Limit | Medium |
2623. Memoize | Medium |
2626. Array Reduce Transformation | Easy |
2627. Debounce | Medium |
2629. Function Composition | Easy |
2634. Filter Elements from Array | Easy |
2635. Apply Transform Over Each Element in Array | Easy |
2637. Promise Time Limit | Medium |
2665. Counter II | Easy |
2666. Allow One Function Call | Easy |
2667. Create Hello World Function | Easy |
2703. Return Length of Arguments Passed | Easy |
2704. To Be Or Not To Be | Easy |
2715. Timeout Cancellation | Easy |
2723. Add Two Promises | Easy |
2725. Interval Cancellation | Easy |
Before running the tests, make sure to install the project dependencies. Use the following command:
npm install
To run the project and execute the tests, use the following command:
npm test
This command will run the test suite and provide feedback of your LeetCode solutions.
If you want to run tests for a specific LeetCode challenge, you can customize the test selection by modifying the jest.config.js
file. To modify the test selection, open the config file and find the testFiles
variable, this variable contains an array of exercise names that determine which tests are run. To include or exclude exercises, edit this array as needed.
For example, to exclude a specific exercise, you can comment it out by adding double slashes (//) in front of its entry in the testFiles
array:
const testFiles = [
//'1-two-sum', // This exercise is commented out and will not run the tests.
'26-remove-duplicates-from-sorted-array',
'41-first-missing-positive',
// ...
];