herrDeng網內搜尋

自訂搜尋
Ads
2024年12月19日 星期四
2024年12月5日 星期四
Python C C++ 2 pointer速解Leetcode 2337 Move Pieces to Obtain a String
Python C C++ 2 pointer速解Leetcode 2337 Move Pieces to Obtain a String
多日Leetcode的問題都可用2-pointer法來解,今日2337. Move Pieces to Obtain a String也不例外,這次就用C/C++/Python三個語言來解[Python解請進]
2024年11月25日 星期一
python requests讀取台積電股票json資訊爬蟲練習
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
2024年11月18日 星期一
Python C++ sliding window速解Leetcode 1652 defuse the bomb
Leetcode的1652. Defuse the Bomb是絕佳的練習題,特別是針對Python的使用者,雖說是sliding window 是簡單的那種,還可練習loop, slicing, minus index etc .https://leetcode.com/problems/defuse-the-bomb/solutions/6056351/sliding-window-for-k-0-or-k-0-beats-100/
2024年11月9日 星期六
bitset C++ python解Leetcode 3133 Minimum Array End
bitset C++ python解Leetcode 3133 Minimum Array End
簡單地說就是把x和n-1的二進位塞成一個數字
-----------
Roughly speeaking, "pack" the binary expressions of x & n-1 into one number
2024年11月8日 星期五
XOR prefix sum C++ python解Leetcode 1829 Maximum XOR for Each Query
XOR prefixsum CPP python解Leetcode 1829 Maximum XOR for Each Query
其實這裡考慮的是元素個數為2^maximumBit的交換群,運算子為XOR。
[Python code請進]
2024年11月4日 星期一
2 pointer Python C++解Leetcode 3163 String Compression III
2 pointer Python C++解Leetcode 3163 String Compression III
[codes on Leetcode]https://leetcode.com/problems/string-compression-iii/solutions/6004059/string-with-2-pointers-3ms-beats-99-15/
[2-pointer/Sliding window play list]https://www.youtube.com/watch?v=--IlX3x54nk&list=PLYRlUBnWnd5KrCfs7qCFb-Bvn7dvnakFy
2024年11月2日 星期六
Colab上安裝中文字型修改股市爬蟲pyplot顯圖
Colab上安裝中文字型修改股市爬蟲pyplot顯圖
使用python套件:
numpy, requests. pyplot, matplotlib.font_manager, matplotlib.mpl
訂閱:
文章 (Atom)
熱門文章
-
請用CPU-Z軟體檢測Cache & Memory 註:快取(L1-L3: SRAM) 第一級快取(L1)–通常存取只需要幾個週期,通常是幾十個KB。 第二級快取(L2)–比L1約有2到10倍較高延遲性,通常是幾百個KB或更多。 第三級快取(L3)(不...
-
需要練習的Java程式:
-
Ex1 加權平均
-
計算gcd(123456789,999999999)
-
請用Java顯示以下字串: