DSA_sheets/dsa/prompts/generate_code_packages_and interfaces.txt
2025-03-01 17:43:13 +05:30

9 lines
690 B
Plaintext

I am trying to check in my leetcode solutions to a gradle project . Help me reduce my manual work.
For each question present except the first one,
1. Create a new package for the problem inside /dsa/src/main/java with package name com.hithomelabs.dsa.array.<package_name> where package name is the name of the question in all lower case with '_' instead of spaces.
2. Create a new java file with a public class Solution as in the leetcode URL associated with each question.
3. Create a new java file for a package protected interface Solvable belonging to the above package with a method solve having the same return type and arguments as of the method present in the class Solution.