algorithm practice using c/cpp