NenadPantelic / cave-for-devs

Collection of the useful resources, tutorials and exercises for cs students and fresh graduates, but also for all the professionals who want to work on some challenges and find some stuff for maintaining brain and fingers active.
MIT License
0 stars 1 forks source link

AS: Add utility script that will help create new issues #3

Open NenadPantelic opened 3 years ago

NenadPantelic commented 3 years ago

Add a script that will generate a markdown file for the description of the issues related to coding exercises. Every coding exercise issue in this repository should follow this markdown pattern:

Add a solution for the LeetCode problem #<number_of_the_problem>: <problem title>. Link: <link of the problem>. 
Languages to pick:
<LIST of prog. languages>
- [ ] <language>

**Note:** put the file in the appropriate folder (based on the language).  
It is totally good to add another version of the solution with a different approach. 
In that case, use the same file (just add version no), e.g.

class Solution:
    # v1
    <snippet code (signature)>

    # v2
    <snippet code (signature)>

Different solutions should be conceptually different,  e.g iterative and recursive, different algorithms
 or different ideas in order to satisfy code review. Tests can be added to the file itself.  If you 
wrote a comment in the editorial on Leetcode about your solution, please add the link below 
version no in the comment.

I need a script that will me automate creation of the markdown file that I can use in the issue description. List of languages should be also updatable (the script should expect languages to be given in the file (txt, JSON, YAML) or hardcoded in the script itself.