網頁

2025年9月10日 星期三

C++示範bitset取代hashset解Leetcode 1733 Minimum Number of People to Teach(含Py3 code)


C++示範bitset取代hashset解Leetcode 1733  Minimum Number of People to Teach
C++ STL的unordered_set與bitset都能解這題,但執行效率差很多,有誰寫C++其執行效能要比類似的Python code還要慢上好久倍?用hashset就如此
[Python code請進 ]

2025年9月8日 星期一

Py3 C++算術建構解1317 Convert Integer to the Sum of Two No Zero Integers


Py3  C++算術建構解1317  Convert Integer to the Sum of Two No Zero Integers
[Py3解請進]