引用:
Acute寫到:
既然回了... 吐槽一下好了
DK... 你們老師的邏輯能力有問題說, 第一題就是錯的,
Input string=>if you wish to understand others you must....
Find string=>must
Step 1: compare the last character of "must" with the last character of "if y"
that is, compare 't' with 'y'
where 't' != 'y' and 'y' not found in the previous character of "mus"
so that we can skip "if y"
Step 2: compare the rest string "ou wish to understand others you must...."
that is, compare 't' with 'w'
where 't' != 'w' and 'w' not found in "mus"
so that w ...
唉~~~現在的老師的資質不好!我們也會跟著往下走