jakobkogler / Algorithm-DataStructures

Implementations of Algorithms and Data Structures
https://www.youtube.com/channel/UCIyYdngljsLPMe2HiJ-icPw
Do What The F*ck You Want To Public License
317 stars 81 forks source link

Algorithm-DataStructures

Implementations of common algorithms and data structures used for competitive programming.

Vim plugin

The algorithms and data structures can easily be pasted into a document using the included Vim plugin.

demonstration

Installation

Use vim-plug or any Vim plugin manager of your choice. The plugin fzf is a requirement.

With vim-plug:

Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'jakobkogler/Algorithm-DataStructures'

Command/Usage

The plugin defines a single command AlgDS. It can be mapped like this:

nmap <leader>alg :AlgDS<CR>

Pretty Printer

There are some pretty printer for GDB. You can activate them by putting the following in your ~/.gdbinit:

source ~/.vim/plugged/Algorithm-DataStructures/prettyprint.py

License

WTFPL