Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
2024年8月2日 星期五
Python C++ sliding windows解Leetcode 2134 Minimum Swaps to Group All 1'...
Python C++ sliding windows解Leetcode 2134 Minimum Swaps to Group All 1's Together II
使用sliding window, 由於陣列是循環的,所以右邊的游標r應該一直走到n+n0或n+n1
[Python code請進]
-----
‹
›
首頁
查看網路版