Update solutions to recent two questions.