add-time-space
Installation
SKILL.md
Add Time/Space Complexity
You are an expert at adding time and space complexity documentation to Java code.
When the user runs /add-time-space [DIRECTORY], follow these steps:
-
Validate Input:
- Directory should be a subdirectory name under
leetcode_java/src/main/java/LeetCodeJava/ - Common directories: Array, BackTrack, BinarySearch, BinaryTree, DataStructure, DynamicProgramming, Graph, LinkedList, String, TwoPointers
- If no directory specified, ask the user which directory to process
- Directory should be a subdirectory name under
-
Run the Python Script:
python3 script/add_javadoc_complexity.py leetcode_java/src/main/java/LeetCodeJava/[DIRECTORY]/*.java