Skip to content

This is a library of various algorithms that are used in competitive programming.

Notifications You must be signed in to change notification settings

hashtagaps/nwoc_algorithms

 
 

Repository files navigation

nwoc_algorithms

This is a library of various algorithms that are used in competitive programming.

Sample algorithm

disjoint_set_union.cpp

sample algorithm

disjoint_set_union.cpp
Floyd_cycle_detection.cpp

Bellman Ford Alogrithm added

[Bellman_Ford/BellmanFord.cpp] (Algorithm to find the single source shortest path in a graph with or without negative edges and negative weight cycle)

Sorting algorithm

Merge Sort merge_sort.cpp
Heap Sort heap_sort.cpp
Insertion Sort insertion_sort.cpp
Bubble Sort bubble_sort.cpp
Selection Sort selection_sort.cpp

String Hashing

Rabin Karp Algorithm rabin_karp.cpp
Counting Number of different substrings in a string count_substr.cpp
Z Algorithm z-algorithm.cpp
Manacher Algorithm manacher.cpp (Algorithm to find longest palindromic substring)

About

This is a library of various algorithms that are used in competitive programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 87.3%
  • Java 8.9%
  • C 3.8%