For practice,and all solutions have been submitted with AC. See https://www.jianshu.com/p/8622078b7f82 about explanations for all issues. .