# -*- mode: snippet -*-
# name: Algorithm Implementation
# key: algorithm
# contributor: LorestForest
# --
/ask
Implement a ${1:name of algorithm} in ${2:programming language}. Please include:
1. The main function with clear parameter and return types
2. Helper functions if necessary
3. Time and space complexity analysis
4. Example usage
