algorithm sample codes and problems