網頁
▼
2026年5月9日 星期六
2026年5月8日 星期五
LeetCode 3629 | Prime Teleportation | Fast BFS + Sieve (Beats 100%)
Sieve BFS解Leetcode 3629 Minimum Jumps to Reach End via Prime Teleportation
目前記錄為83ms. Using array version of linked lists it 's faster, say 64ms!為何結合Sieve法與BFS的問題。會被Leetcode標示為medium?
幾個100%的解
2026年5月6日 星期三
Master LeetCode 1861 | Efficient Loop Strategy for Rotating the Box | Beats 100%
C++ C Py3 loop速解Leetcode 1861 Rotating the Box
一連數日Leetcode都是"rotate"的問題,這些問題都解完了嗎?先解今天的