commonly used algorithms during online contest