Solutions for different algorithmic tasks