Remove hardcoded difficulties and add dynamic difficulty management system

This commit is contained in:
Carlos
2025-07-11 12:29:14 -04:00
parent ce9f0dcf97
commit e1a096c5bc
3 changed files with 223 additions and 22 deletions

View File

@@ -109,6 +109,26 @@ This repo tracks my journey solving LeetCode problems — not just code, but my
## 🛠️ Tools & Scripts
- `create_missing_notes.sh`: Automatically creates missing note files for solved problems
- `update_difficulties.sh`: Manage problem difficulties dynamically without hardcoding
### Script Usage Examples:
```bash
# Create missing notes for new problems
./create_missing_notes.sh
# Add difficulty mapping for a problem
./update_difficulties.sh -a 1 Easy
./update_difficulties.sh -a 4 Hard
# List all difficulty mappings
./update_difficulties.sh -l
# Update all note files with correct difficulties
./update_difficulties.sh -u
# Remove difficulty mapping
./update_difficulties.sh -r 1
```
## 📚 Resources
- [LeetCode Problem Set](https://leetcode.com/problemset/)