方法3,return steps;这个需要 return steps if cur>=n-1 else -1 吗?会不会最后一步不可达
点赞

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务