全部评论
这第4题楼主只考虑了左和上两个方向的来路,没考虑右下啊。 用这个例子: 1 2 2 2 2 1 2 1 1 1 1 1 1 2 1 出来答案是-1,但是实际应该是8。 看到有其他老哥跟楼主解法一样也说过了。。只能说设计的测试用例太差了。我考虑全了用bfs做的爆栈了,过了一半。
好强。
第二题leetcode上有类似的题型嘛
什么时候才能达到楼主的层次
相关推荐

点赞 评论 收藏
分享
02-18 15:56
广东科技学院 产品经理 
点赞 评论 收藏
分享
2024-12-25 23:11
门头沟学院 嵌入式工程师 
点赞 评论 收藏
分享