VS Code Data Structures & Algorithms Snippets Extension
Features
Currently supports the following snippets (more to come):
Sorting
Selection $slctn-srt
Insertion $ins-srt
Bubble $bbl-srt
Shell $shell-srt
Merge $mrg-srt
Quick $qk-srt
Heap $hp-srt
Counting $cnt-srt
Radix $rx-srt
Searching
Linear $lin-srch
Binary $bi-srch
Jump $jmp-srch
Interpolation $interpl-srch
Fibonacci $fib-srch
Data Structures
Array #arr
For-Each Traversal #arr-trav
For-Each Reversal Traversal #arr-revtrav
Get Uniques #arr-uniques
Permutations #arr-permutations
Shuffle (Fisher-Yates algorithm) #arr-shuffle
Queue (Class Impl.) #queue
Stack (Class Impl.) #stack
Map #map
Traversal #map-trav
Tree #tree
Binary Search Tree #tree-bst
[ ] DFS / BFS ?
AVL Tree #tree-avl
Red-Black Tree #tree-redblack
Graph (BFS + DFS supported) #graph
Number Theory and Math
Sieve of Eratosthenes #sieve-erat
Sieve of Atkin #sieve-atkin
Wilson's Theorem (Primality Test) #wilson-thm
Prime Factorization #prime-factr
Euler’s Totient Function #euler-totient-fx
Modular Exponentiation #mod-exp
Factorial (Recursive) #factorial-rec
Factorial (Iterative) #factorial-itr
Pascal's Triangle #pascal-tri
Euclidean Distance #eucl-dist
Crytography
Polynomial Hash #poly-hash
Caesar's Cipher #csr-cphr
Rail Fence Cipher #railfence-cphr
String
Reverse #str-rev
Palindrome Check #str-palindrome
Hamming Distance #str-hamming
Levenshtein Distance #str-levenshtein
Rabin Karp Algorithm #str-rabin-karp
Longest Common Substring #substr-lng-cmn
Suggestions?
If you have any suggestions on which code snippets you would like to see this extension feature next,
please feel free to message me, Dev Patel, from my personal website.