这个ListNode没有创建有参构造器,应该加上 public ListNode(int val){ this.val=val; }
点赞

相关推荐

点赞 评论 收藏
分享
牛客网
牛客企业服务