algorithm code snippets written in c,go,etc.