InterviewBit problems scraper and my notes
- install pandoc
convert.pyusespandocto convert html to markdown.
- install mkdocs and mkdocs-material
pip install mkdocspip install mkdocs-materialmkdocsis not required but can be used to generate site using md files.
- install pypandoc
pip install pypandocpython wrapper to pandoc.
Run following commands
mkdocs new <doc_dir>python combine.py problems <doc_dir>/docs <sort_key>sort_keycan betimeorscoreusing with problems will be ordered in the final docs.
cd doc_dirmkdocs buildmkdocs buildwill create a directorysiteindoc_dircontaining the HTML doc for the problems.
Save your notes on a problem in markdown format. To put your notes under the problem directory run store_md.py .
Usage:
- meta :
python store_md.py meta - store :
python store_md.py store <category> <prob_slug> <file.md> <file_cat>https://www.interviewbit.com/problems/reverse-bits/has problem slugreverse-bits.file_catcan besolwhere file will be store with prefixs_under the problem directory ornotewhere file will be stored withn_under the problem directory Refer category map given below or you can set your own category abbreviations meta argument tostore_md.py. Problem banner with problem link will be added bystore_md.py.
Category Map:
arr: arraysbin_srch: binary searchbit: bit manipulationbtrack: backtrackingdp: dynamic programminggraph: graphsgreedy: greedyhash: hashingheap_map: heaps and mapslink_lt: linked listsmath: mathstk_q: stacks and queuesstr: stringstc: time complexitytree: treestwo_ptr: two pointers