C implementations for CTCI problems.