由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - leetcode 新题 Word Ladder
相关主题
leetcode要准备收钱了吗?Leetcode一直没加新题?
代码是对的但是过不了leetcode的测试leetcode新题怎么做?
Time limit exceeded for Word Ladder(leetcode)Leetcode新题 Copy List with Random Pointer
LeetCode: Word Ladderleetcode出书了15快 能做10道新题
leetcode里面最麻烦的一道题是什么题leetcode新题Factorial Trailing Zeroes大家都能过oj么?
你软电面被烙印问了word ladder II求问leetcode新题reverse bits的follow up
[算法] word ladder problem遇到新题脑袋一片空白怎么办?
问问 leetcode 新题leetcode新题求助:Course Schedule II
相关话题的讨论汇总
话题: hot话题: dog话题: dot话题: ladder话题: word
进入JobHunting版参与讨论
1 (共1页)
p*g
发帖数: 141
1
input output expected
"a", "c", ["a","b","c"] 2 2

"hot", "dog", ["hot","dog"] 0 0

"hot", "dog", ["hot","dog","dot"] 3 3

"hot", "dot", ["hot","dot","dog"] 2 2

"hot", "dog", ["hot","cog","dog","tot","hog","hop","pot","dot"] 3 3

"hot", "hot", ["hot"] 0 0

"hot", "hot", ["hot","dot"] 0 3

"dog", "dog", ["din","dog","dig","don","tag"] 0 3

这里的最后两个test cases应该不对吧
f*******t
发帖数: 7549
2
start end相等时不能直接返回0,每次必须变一个字母
P*******b
发帖数: 1001
3
start end都相等了,为啥还需要变呢?

【在 f*******t 的大作中提到】
: start end相等时不能直接返回0,每次必须变一个字母
p*****2
发帖数: 21240
4
我觉得test case绝对有问题。希望leetcode能更新一下。
1 (共1页)
进入JobHunting版参与讨论
相关主题
leetcode新题求助:Course Schedule IIleetcode里面最麻烦的一道题是什么题
刷leetcode的小朋友有没有觉得新题刷的很慢?你软电面被烙印问了word ladder II
leetcode新题的easy == 旧题的medium[算法] word ladder problem
leetcode一道新题我不懂问问 leetcode 新题
leetcode要准备收钱了吗?Leetcode一直没加新题?
代码是对的但是过不了leetcode的测试leetcode新题怎么做?
Time limit exceeded for Word Ladder(leetcode)Leetcode新题 Copy List with Random Pointer
LeetCode: Word Ladderleetcode出书了15快 能做10道新题
相关话题的讨论汇总
话题: hot话题: dog话题: dot话题: ladder话题: word