代碼1 Runtime: 43 ms, faster than 11.05% of Java online submissions for Re...
代碼1 dpAn example:S: [acdabefbc]T: [ab] first we check with a: then we ch...
代碼1 Runtime: 3 ms, faster than 25.41% of Java online submissions for Dif...
代碼1 Runtime: 9 ms, faster than 8.31% of Java online submissions for Long...
代碼1 backtrackRuntime: 1 ms, faster than 84.99% of Java online submission...
代碼1 DPRuntime: 9 ms, faster than 82.70% of Java online submissions for P...
代碼1 DFSRuntime: 3 ms, faster than 59.03% of Java online submissions for ...
代碼1 首先把每個單詞都放進去這個逆向單詞樹。然后試著是否能不停的往下走。有兩種情況是可以認為當前遍歷的詞和某個節(jié)點可以形成一個結果配對的。如果...
代碼1 第一次自己做出hard題Runtime: 118 ms, faster than 42.09% of Java online submi...