编译错误:您提交的代码无法完成编译
Main.java:23: error: incompatible types: ArrayList<Integer> cannot be converted to int[]
int[] ret = solution.spiralOrder( matrix );
^
1 error
为啥题目要求返回的是ArrayList<Integer> 提交的时候却提示类型不匹配。蹲一个大佬😁解答,为啥会这样
全部评论

相关推荐

谁知道呢_:要掉小珍珠了,库库学三年,这个结果
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务