Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
2025年7月6日 星期日
C++ Py3 hashmap與binary search解Leetcode 1865 Finding Pairs With a Certain...
C++ Py3 hashmap與binary search解Leetcode 1865 Finding Pairs With a Certain Sum
基本上用 hashmap。解釋為什麼要使用排序和二元搜尋找來優化程式碼
-----
Basically use hashmap. Explain why one should use sorting and binary search to optimize the code.
[codes on Leetcode]
https://leetcode.com/problems/finding-pairs-with-a-certain-sum/solutions/6925404/unordered-map-sort-binary-search-c-37ms-99-37-py3-97-45/
[Leetcode playlist]
https://www.youtube.com/watch?v=LJPL-Ukxf8w&list=PLYRlUBnWnd5IdDHk2BjqXwesydU17z_xk
‹
›
首頁
查看網路版