摘要:
第三种方法为位运算的方法。位运算符: #include #include #include #include using namespace std;//时间 O(n) 空间 O(1)bool hasSame(string str){ if(str.size() == 0 ) r...
阅读全文
摘要:
https://oj.leetcode.com/problems/word-ladder-ii/啊,终于过了class Solution {public: vector > findLadders(string start, string end, unordered_set &dict) {...
阅读全文