C++ python 迴圈累加解Leetcode垃圾車問題2391 Minimum Amount of Time to Collect Gar...
C++ python 迴圈累加解Leetcode垃圾車問題2391 Minimum Amount of Time to Collect Garbage。Leetcode垃圾車的問題根本是閱讀測驗,官方解答用hash map(unordered_map),GCC的unordered_map很難用,其實也不必用。就一般的loop以及string::find,如果要偷懶用一下accumulate/sum,真是不難,又100趴!
沒有留言:
張貼留言
HTML 編輯器