|
| 1 | +# Day 21: LeetCode Easy Problems 🚀 |
| 2 | + |
| 3 | +Welcome to Day 21! Today, we're tackling some classic problems on LeetCode. These exercises will help you sharpen your problem-solving skills and build confidence in solving coding challenges. Let's dive into it! 💪 |
| 4 | + |
| 5 | +## Tasks/Activities 📝 |
| 6 | + |
| 7 | +### Activity 1: Two Sum ➕ |
| 8 | +- [ ] **Task 1:** Solve the "Two Sum" problem on LeetCode. |
| 9 | + - Write a function that takes an array of numbers and a target number, and returns the indices of the two numbers that add up to the target. |
| 10 | + - Log the indices for a few test cases. |
| 11 | + |
| 12 | +### Activity 2: Reverse Integer 🔄 |
| 13 | +- [ ] **Task 2:** Solve the "Reverse Integer" problem on LeetCode. |
| 14 | + - Write a function that takes an integer and returns it with its digits reversed. |
| 15 | + - Handle edge cases like negative numbers and numbers ending in zero. |
| 16 | + - Log the reversed integers for a few test cases. |
| 17 | + |
| 18 | +### Activity 3: Palindrome Number 🔢 |
| 19 | +- [ ] **Task 3:** Solve the "Palindrome Number" problem on LeetCode. |
| 20 | + - Write a function that takes an integer and returns `true` if it is a palindrome, and `false` otherwise. |
| 21 | + - Log the result for a few test cases, including edge cases like negative numbers. |
| 22 | + |
| 23 | +### Activity 4: Merge Two Sorted Lists 🔗 |
| 24 | +- [ ] **Task 4:** Solve the "Merge Two Sorted Lists" problem on LeetCode. |
| 25 | + - Write a function that takes two sorted linked lists and returns a new sorted list by merging them. |
| 26 | + - Create a few test cases with linked lists and log the merged list. |
| 27 | + |
| 28 | +### Activity 5: Valid Parentheses ✔️❌ |
| 29 | +- [ ] **Task 5:** Solve the "Valid Parentheses" problem on LeetCode. |
| 30 | + - Write a function that takes a string containing just the characters '(', ')', '[', ']', '{', '}', and determines if the input string is valid. |
| 31 | + - A string is valid if open brackets are closed in the correct order. |
| 32 | + - Log the result for a few test cases. |
| 33 | + |
| 34 | +## Feature Request 🎯 |
| 35 | + |
| 36 | +1. **Two Sum Script:** Write a script that includes a function to solve the "Two Sum" problem and logs the indices of the two numbers. |
| 37 | +2. **Reverse Integer Script:** Create a script that includes a function to reverse an integer and handles edge cases. |
| 38 | +3. **Palindrome Number Script:** Write a script that includes a function to check if an integer is a palindrome and logs the result. |
| 39 | +4. **Merge Two Sorted Lists Script:** Create a script that includes a function to merge two sorted linked lists and logs the merged list. |
| 40 | +5. **Valid Parentheses Script:** Write a script that includes a function to check if a string of parentheses is valid and logs the result. |
| 41 | + |
| 42 | +## Achievement Unlocked 🏆 |
| 43 | + |
| 44 | +By the end of these activities, you will: |
| 45 | + |
| 46 | +- ✅ Solve common LeetCode problems. |
| 47 | +- ✅ Apply problem-solving skills to implement algorithms. |
| 48 | +- ✅ Understand and handle edge cases in algorithmic solutions. |
| 49 | +- ✅ Gain confidence in solving easy-level coding challenges on LeetCode. |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +Happy Coding! 💻✨ |
0 commit comments