網頁

2023年12月16日 星期六

Python C++秒搞定Leetcode 242 Valid Anagram


Python C++秒搞定Leetcode 242  Valid Anagram。其實解這問題C++, Python都有1 line code,有興趣者請進:

2023年12月11日 星期一

C++ python binary search二元搜尋解Leetcode1287 Element Appearing More Than...


C++ python  binary  search二元搜尋解Leetcode1287  Element Appearing More Than 25% In Sorted Array。程式不難找到合用的套件就好,要會用C++的upper_bound, lower_bound或是python的bisect.bisect_right, bisect.bisect_left

2023年12月10日 星期日