solve two new problems of LC