推一下自己的题解,有第四题做法和代码:https://www.nowcoder.com/discuss/475329?type=post&order=time&pos=&page=1&channel=1009&source_id=search_post。这第四题确实不好写,楼主已经很棒了😁