Skip to main content

Algorithms

On these sections of my blog/site/doc website I want to save all algorithms and tips that I find useful. You can find links or small guides on topics that I find useful for competitive programming.

Example banner

Python cheatsheet

Arguments

Array

Sliding Window

Two Pointers

Sorting

Cyclic Sort Dutch_national_flag_problem

K-way merge
Longest increasing subsequence

Linked list

Merge Intervals

In-place Reversal of a Linked list

Fast & Slow pointers

Sets

Subsets

Union find

Bitwise operation

Bitwise XOR

Trees

Tries

Two Heaps

Graphs

Dijkstra

Floyd–Warshall algorithm

Topological Sort (Graph)

Tarjan's Algorithm

Prim algorithm

Other and DP

Top 'K' Elements

0-1 Knapsack (Dynamic Programming)