Closed twy30 closed 3 years ago
這裡遇到個很有趣的情形
// 「 piece 在 InputNumbers 中的起始索引值」, "piece" 取自 LeetCode 題目敘述用字 var pieceStartIndexInInputNumbers = inputNumberIndexes[piece[0]];
pieceStartIndexInInputNumbers
由 6 個英文字組成,雖然在英文語法、語意上算是清楚,但不易閱讀。
或許這裡應該採用折衷的做法 🤔 例如:
pieceStartIndex
更新 LeetCode 解答,採用「變數名稱縮為 pieceStartIndex」。
https://leetcode.com/problems/check-array-formation-through-concatenation/
請參考「刷 LeetCode 練習命名」 https://github.com/EngTW/English-for-Programmers/issues/69 😊