126. Word Ladder II

//very interesting problem //It can be solved with standard BFS. The tricky idea is doing BFS of paths instead of words! //Then the queue becomes a queue of paths. class Solution { public: vector<vect
相关文章
相关标签/搜索