A few fast solutions for denim problems.