https://github.com/code-with-divyanshu/leetcode-30-days-javascript-challenge
https://github.com/code-with-divyanshu/leetcode-30-days-javascript-challenge
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/code-with-divyanshu/leetcode-30-days-javascript-challenge
- Owner: code-with-divyanshu
- Created: 2025-03-14T18:42:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-30T14:12:39.000Z (about 1 year ago)
- Last Synced: 2025-03-30T15:23:16.202Z (about 1 year ago)
- Language: JavaScript
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 🚀 LeetCode 30 Days JavaScript Challenge
This repository contains my solutions for the **LeetCode 30 Days JavaScript Challenge**, where I solve one coding problem each day to improve my **problem-solving skills, data structures & algorithms (DSA) expertise, and JavaScript proficiency**.
## 📌 **Why This Challenge?**
- **Improve problem-solving skills** 🧠
- **Master JavaScript beyond syntax** 🔥
- **Optimize solutions for better performance** ⚡
- **Prepare for coding interviews & real-world challenges** 💼
## 📑 **Structure**
Each day's solution is stored in a separate file under the `day-x` format:
```
📂 LeetCode-30Days-JS
┣ 📂 Day-01_Problem_Name
┃ ┣ 📜 solution.js
┃ ┣ 📜 README.md
┣ 📂 Day-02_Problem_Name
┃ ┣ 📜 solution.js
┃ ┣ 📜 README.md
┣ 📂 ...
┣ 📜 README.md
```
- `solution.js` → JavaScript solution to the daily problem
- `README.md` → Explanation of the problem, approach, and optimizations
## 🛠 **How to Use This Repo?**
1️⃣ **Clone the repository**
```bash
git clone https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge.git
```
2️⃣ **Navigate to a day's folder**
```bash
cd LeetCode-30-Days-JavaScript-Challenge/Day-01..._Problem_Name
```
3️⃣ **Run the JavaScript file**
```bash
node solution.js
```
4️⃣ **Modify, test, and experiment with different approaches!** 🚀
---
## 📆 **Challenge Progress Tracker**
| Day | Problem | Solution |
| ----- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| ✅ 1 | [Create Hello World Function](https://leetcode.com/problems/create-hello-world-function/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/blob/main/Day_01_Create_Hello_World_Function) |
| ✅ 2 | [Counter Function](https://leetcode.com/problems/counter/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_02_Counter) |
| ✅ 3 | [To Be or Not To Be Function](https://leetcode.com/problems/to-be-or-not-to-be/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_03_ToBe_NotToBe) |
| ✅ 4 | [Counter II Function](https://leetcode.com/problems/counter-ii/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_04_Counter_II) |
| ✅ 5 | [Apply Transform Over Each Element in Array Function](https://leetcode.com/problems/apply-transform-over-each-element-in-array/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_05_Array_Transform) |
| ✅ 6 | [Filter Elements from Array Function](https://leetcode.com/problems/filter-elements-from-array/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_06_Filter_Array) |
| ✅ 7 | [Array Reduce Transformation Function](https://leetcode.com/problems/array-reduce-transformation/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_07_Reduce_Array) |
| ✅ 8 | [Function Composition Function](https://leetcode.com/problems/function-composition/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_08_Function_Composition) |
| ✅ 9 | [Return Length of Arguments Passed Function](https://leetcode.com/problems/return-length-of-arguments-passed/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_09_Return_Length_Argument) |
| ✅ 10 | [Allow One Function Call Solution Function](https://leetcode.com/problems/allow-one-function-call/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_10_Allow_One_Function_Call) |
| ✅ 11 | [Memorize Function](https://leetcode.com/problems/memoize/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_11_Memorize) |
| ✅ 12 | [Add Two Promises Function](https://leetcode.com/problems/add-two-promises/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_12_Add_Two_Promises) |
| ✅ 13 | [Sleep Function](https://leetcode.com/problems/sleep/description) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_13_Sleep) |
| ✅ 14 | [Timeout Cancellation Function](https://leetcode.com/problems/timeout-cancellation/description) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_14_Timeout_Cancellation) |
| ✅ 15 | [Interval Cancellation Function](https://leetcode.com/problems/interval-cancellation/description) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_15_Interval_Cancellation) |
| ✅ 16 | [Promise Time Limit Function](https://leetcode.com/problems/promise-time-limit/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_16_Promise_Time_Limit) |
| ✅ 17 | [Cache With Time Limit Function](https://leetcode.com/problems/cache-with-time-limit/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_17_Cache_With_Time_Limit) |
| ✅ 18 | [Debounce Function](https://leetcode.com/problems/debounce/description) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_18_Debounce) |
| ✅ 19 | [Execute Asynchronus Function In Parallel](https://leetcode.com/problems/execute-asynchronous-functions-in-parallel/description) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_19_Execute_Async_Fn_Parallel) |
| ✅ 20 | [Is Object Empty Function](https://leetcode.com/problems/is-object-empty/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_20_IsObject_Empty) |
| ✅ 21 | [Chunk Array Function](https://leetcode.com/problems/chunk-array/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_21_Chunk_Array) |
| ✅ 22 | [Array Prototype Last Function](https://leetcode.com/problems/array-prototype-last/description/) | [Solution](https://github.com/code-with-divyanshu/LeetCode-30-Days-JavaScript-Challenge/tree/main/Day_22_Array_Prototype_Last) |
| 🔄 23 | In Progress | -- |
_(Updating daily! 🚀)_
---
## 📌 **Let's Connect!**
🔗 **LeetCode** → [My Profile](https://leetcode.com/u/runl4AVDwJ/)
🔗 **GitHub** → [My GitHub](https://github.com/code-with-divyanshu)
🔗 **LinkedIn** → [Connect with Me](https://www.linkedin.com/in/divyanshu-bartwal-b7b058286/)
🔗 **Twitter (X)** → [Follow Me](https://x.com/DivyanshuB21040)
🙌 **If you find this helpful, give it a ⭐ and join me in this challenge!**
Happy Coding! 👨💻🔥