網頁

2025年11月16日 星期日

C++用 -1 mask法達到branchless解Leetcode1513 Number of Substrings With Only 1...


C++用 -1 mask法達到branchless解Leetcode1513  Number of Substrings With Only 1s|Py3 1-liner
其實很容易,想練功,試試一行解,或是把if分岔拿掉
[C++無分岔解請進]